Use [crypto-json](https://github.com/hmrc/crypto#crypto-json instead
A library that provides JSON encryption.
Instead of Protected
, you may prefer to use Sensitive
from crypto and the play formats from crypto-json. This is especially recommended where erasure is a problem (e.g. mongo codecs).
Add the jar to the project dependencies:
resolvers += MavenRepository("HMRC-open-artefacts-maven2", "https://open.artefacts.tax.service.gov.uk/maven2")libraryDependencies += "uk.gov.hmrc" %% "json-encryption" % "[INSERT VERSION]"
This code is open source software licensed under the Apache 2.0 License.