public class OLcEncrypter extends java.lang.Object implements Encrypter
Modifier and Type | Method and Description |
---|---|
java.lang.String |
decryptStringTwoWays(java.lang.String encryptedtext) |
java.lang.String |
encryptStringOneWay(java.lang.String origintext)
Encrypts string one way (cannot be decrypted but the encoded text will be the
same each time, allowing to test if the provided input is equal to the stored
value in DB).
|
java.lang.String |
encryptStringTwoWays(java.lang.String origintext) |
static OLcEncrypter |
getEncrypter()
gets the singleton encrypter.
|
static void |
main(java.lang.String[] args) |
public static OLcEncrypter getEncrypter()
public java.lang.String encryptStringOneWay(java.lang.String origintext)
origintext
- original textpublic java.lang.String encryptStringTwoWays(java.lang.String origintext)
encryptStringTwoWays
in interface Encrypter
origintext
- the clear payloadpublic java.lang.String decryptStringTwoWays(java.lang.String encryptedtext)
decryptStringTwoWays
in interface Encrypter
encryptedtext
- encrypted payloadpublic static void main(java.lang.String[] args)