Package com.vdoc.sdk.commons.utils
Class CryptUtils
java.lang.Object
com.vdoc.sdk.commons.utils.CryptUtils
Crypt utility class
- Author:
- vmartinon
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringDecryptdecrypt(String, String)with default keyENCRYPTION_KEYstatic StringDecryptstatic StringEncryptencrypt(String, String)with default keyENCRYPTION_KEYstatic StringEncrypt
-
Method Details
-
encrypt
Encryptencrypt(String, String)with default keyENCRYPTION_KEY- Parameters:
plainText- the text to encrypt- Returns:
- the encrypted text
- See Also:
-
encrypt
Encrypt- Parameters:
plainText- the text to encryptkey- the key to encrypt the text with- Returns:
- the encrypted text
-
decrypt
Decryptdecrypt(String, String)with default keyENCRYPTION_KEY- Parameters:
encryptedText- the text to decrypt- Returns:
- the decrypted text
- See Also:
-
decrypt
Decrypt- Parameters:
encryptedText- the text to decryptkey- the key to decrypt the text with- Returns:
- the decrypted text
-