A micro-library for all Crypto related infrastructure.
Scala
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
project
src
.gitignore
.scalafmt.conf
.travis.yml
LICENSE
README.md
build.sbt

README.md

Crypto

Build Status Download

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=="]  
    }  

Installing

Add the following to your SBT build:

resolvers += Resolver.bintrayRepo("hmrc", "releases")

libraryDependencies += "uk.gov.hmrc" %% "crypto" % "[INSERT-VERSION]"

License

This code is open source software licensed under the Apache 2.0 License.