OnewayCryptoFactory

uk.gov.hmrc.crypto.OnewayCryptoFactory

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def composeCrypto(currentCrypto: Hasher & Verifier, previousDecrypters: Seq[Verifier]): Hasher & Verifier

Composes a current crypto for hashing and verifing, along with any previous verifers. This enables changing the crypto alorithm/secret key while still being able to verify any previously hashed data.

Composes a current crypto for hashing and verifing, along with any previous verifers. This enables changing the crypto alorithm/secret key while still being able to verify any previously hashed data.

Attributes

def sha(key: String): Sha512Crypto
def shaCryptoFromConfig(baseConfigKey: String, config: Config): Hasher & Verifier