Package com.saperion.util
Class DesEncrypter
java.lang.Object
com.saperion.util.DesEncrypter
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Deprecated.Deprecated, because it is neither throwing an Exception nor returning NULL if it couldn't be decrypted.static String
Encrypt a key.static String
tryDecrypt
(String str) Returns the Decrypted Parameter, if encryption can be done.
-
Method Details
-
encrypt
Encrypt a key.- Parameters:
str
- Key- Returns:
- Encrypted key
-
decrypt
Deprecated.Deprecated, because it is neither throwing an Exception nor returning NULL if it couldn't be decrypted. Please use tryDecrypt.Decrypt a key.- Parameters:
str
- Key- Returns:
- Decrypted key
-
tryDecrypt
Returns the Decrypted Parameter, if encryption can be done. If not, the Input Parameter is returned.- Parameters:
str
- Encrypted String- Returns:
- if Decryption can be done, the String wil be returned. if not, the Input Parameter will be returned.
-