A micro-library for all Crypto related infrastructure.
In the example below 'cookie.encryption' is the baseConfigKey that is specified when the crypto utility is created. The 'previousKeys' element is optional.
# Base 64 encoded MD5 hash of application.secret
cookie.encryption {
key="gvBoGdgzqG1AarzF1LY0zQ=="
previousKeys=["AwMDAwMDAwMDAwMDAwMDAw==","BAQEBAQEBAQEBAQEBAQEBA=="]
}
Add the following to your SBT build:
resolvers += Resolver.bintrayRepo("hmrc", "releases")
libraryDependencies += "uk.gov.hmrc" %% "crypto" % "[INSERT-VERSION]"
Please note that although Platform Security does not own this code, it is required to get peer review from Platform Security on changes made.
This code is open source software licensed under the Apache 2.0 License.