EncryptionManager.java | Class | A static class that uses registered Encryption instances to encypt and decrypt objects, typically strings.
The encrypted strings are preceded by the name of the Encryption object, such as {Simple}, followed by the base64
encoded encrypted bytes.
Any number of Encryption instances can be registered but only the first to be explicitly registered will be used.
However, when decrypting the Encryption instance is looked up from the name prefix so may be any registered Encryption instance.
Furthermore, encrypt and decrypt are idempotent. |