package crypto
- Alphabetic
- Public
- Protected
Type Members
- class JcaCrypter extends Crypter
Crypter implementation based on JCA (Java Cryptography Architecture).
Crypter implementation based on JCA (Java Cryptography Architecture).
The algorithm used in this implementation is
AES/CTR/NoPadding. Beware that CTR is malleable, which might be abused for various attacks if messages are not properly authenticated. - case class JcaCrypterSettings(key: String) extends Product with Serializable
The settings for the JCA crypter.
The settings for the JCA crypter.
- key
The encryption key.
- class JcaSigner extends Signer
Signer implementation based on JCA (Java Cryptography Architecture).
Signer implementation based on JCA (Java Cryptography Architecture).
This signer signs the data with the specified key. If the signature verification fails, the signer does not try to decode the data in any way in order to prevent various types of attacks.
- case class JcaSignerSettings(key: String, pepper: String = "-mohiva-silhouette-signer-") extends Product with Serializable
The settings for the JCA signer.
The settings for the JCA signer.
- key
Key for signing.
- pepper
Constant prepended and appended to the data before signing. When using one key for multiple purposes, using a specific pepper reduces some risks arising from this.
Value Members
- object JcaCrypter
The companion object.
- object JcaSigner
The companion object.