You can use this library to encrypt and decrypt messages.
val client = new PaymentInternalClient(new FakeCiphers())
val cipher = new CipherService(client)
val encryptedCipher = cipher.create("Test string for encrypt", Map.empty)
case class EncryptedCipher(
id: String,
password: String
)
decryptedCipher = cipher.get(encryptedCipher)
case class DecryptedCipher(
id: String,
cleartext: String,
attributes: Map[String, String]
)
id - icc3AINJrw1GsGyDUioMwLcOEQriZZnMkw1S9DQI2BgxQmyTjuV9SRSm0HZgrJso : password - DaIptksNZuIWNMPsmAMMnxjIWYzfASR8rtD69B6nbtjziHATF5Qy7RRhc3IhP2R8
id - icc3AINJrw1GsGyDUioMwLcOEQriZZnMkw1S9DQI2BgxQmyTjuV9SRSm0HZgrJso : cleartext - Test string for encrypt