SymmetricCryptoFactory

uk.gov.hmrc.crypto.SymmetricCryptoFactory

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def aesCrypto(secretKey: String): Encrypter & Decrypter

An implementation of "AES" Cipher. Prefer aesGcmCrypto for any new usage, which will not produce repeatable encryptions.

An implementation of "AES" Cipher. Prefer aesGcmCrypto for any new usage, which will not produce repeatable encryptions.

Attributes

def aesCryptoFromConfig(baseConfigKey: String, config: Config): Encrypter & Decrypter

An implementation of "AES" Cipher. Prefer aesGcmCryptoFromConfig for any new usage, which will not produce repeatable encryptions.

An implementation of "AES" Cipher. Prefer aesGcmCryptoFromConfig for any new usage, which will not produce repeatable encryptions.

Attributes

def aesGcmAdCrypto(aesKey: String): AdEncrypter & AdDecrypter

An implementation of "AES" Cipher, with "GCM" algorithm. You can provide your own associated data when encrypting/decrypting.

An implementation of "AES" Cipher, with "GCM" algorithm. You can provide your own associated data when encrypting/decrypting.

Attributes

def aesGcmAdCryptoFromConfig(baseConfigKey: String, config: Config): AdEncrypter & AdDecrypter
def aesGcmCrypto(secretKey: String): Encrypter & Decrypter

An implementation of "AES" Cipher, with "GCM" algorithm. Note, the associated data is always set to an empty array. Use aesGcmAdCrypto if you want to provide your own associated data.

An implementation of "AES" Cipher, with "GCM" algorithm. Note, the associated data is always set to an empty array. Use aesGcmAdCrypto if you want to provide your own associated data.

Attributes

def aesGcmCryptoFromConfig(baseConfigKey: String, config: Config): Encrypter & Decrypter
def composeAdCrypto(currentCrypto: AdEncrypter & AdDecrypter, previousDecrypters: Seq[AdDecrypter]): AdEncrypter & AdDecrypter

Composes a current crypto for encryption and decryption, along with any previous decrypters. This enables changing the crypto alorithm/secret key while still being able to decrypt any previously encrypted data.

Composes a current crypto for encryption and decryption, along with any previous decrypters. This enables changing the crypto alorithm/secret key while still being able to decrypt any previously encrypted data.

Attributes

def composeCrypto(currentCrypto: Encrypter & Decrypter, previousDecrypters: Seq[Decrypter]): Encrypter & Decrypter

Composes a current crypto for encryption and decryption, along with any previous decrypters. This enables changing the crypto alorithm/secret key while still being able to decrypt any previously encrypted data.

Composes a current crypto for encryption and decryption, along with any previous decrypters. This enables changing the crypto alorithm/secret key while still being able to decrypt any previously encrypted data.

Attributes