Module io.helidon.common.crypto
Package io.helidon.common.crypto
Common cryptography implementations.
This module is used to create digest (such as hash, hmac or signature) and perform cryptographic operations to encrypt and decrypt data with usage of AES, ChaCha20 or RSA.
All of the supported algorithms by default, are available at the corresponding class as a constant. It is not required to use only algorithms available by default. All of the algorithms and their providers are configurable over the builder of each class.
Digests:
This module is used to create digest (such as hash, hmac or signature) and perform cryptographic operations to encrypt and decrypt data with usage of AES, ChaCha20 or RSA.
All of the supported algorithms by default, are available at the corresponding class as a constant. It is not required to use only algorithms available by default. All of the algorithms and their providers are configurable over the builder of each class.
Digests:
Encryption/Decryption:HashDigest
- class which creates hash digest of the messageHmacDigest
- class which creates message authentication code with addition of secret keySignature
- class which creates RSA/EC signature
SymmetricCipher
- class which encrypts and decrypts provided message by symmetric cipher (AES, ChaCha20 etc.)AsymmetricCipher
- class which encrypts and decrypts provided message by asymmetric cipher (RSA)
-
Interface Summary Interface Description CommonCipher Common cipher which helps to simplify encryption and decryption of the message.Digest Common digest which simplifies digest creation and its verification. -
Class Summary Class Description AsymmetricCipher This class provides simple and stateless way to encrypt and decrypt messages using selected asymmetric cipher.AsymmetricCipher.Builder Builder of theAsymmetricCipher
.HashDigest The HashDigest is used for ordinary data digest creation and verification.HashDigest.Builder Builder of theHashDigest
.HmacDigest The HmacDigest is used for simplification of the HMAC signature creation and verification.HmacDigest.Builder Builder of theHmacDigest
.PasswordKeyDerivation Util class used for encryption key derivation from the password.Signature The Signature class is used for simplification of the digital signature creation and verification.Signature.Builder Builder of theSignature
.SymmetricCipher This class provides simple and stateless way to encrypt and decrypt messages using selected symmetric cipher.SymmetricCipher.Builder Builder of theSymmetricCipher
. -
Exception Summary Exception Description CryptoException Common cryptography exception.