Important: this service has kalium as a dependency, which itself needs libsodium installed directly in the operating system for this to work. For more on this please read the Kalium documentation.
Just instantiate EncryptionUtils
, manually or through DI, and look at the available methods and documentation.
This library was initially created to add this functionality to the Play Framework, which, i think after version 2.5, decided that this kind of functionality shouldn't be provided by the framework.