
Public Member Functions | |
| String | decrypt (String cryptedText, Key secretKey) |
| String | decrypt (String cryptedText) |
| String | encrypt (String clearText, Key secretKey) |
| String | encrypt (String clearText) |
| ERXDESCrypter (String secretKeyPathFramework, String secretKeyPath) | |
| ERXDESCrypter () | |
| void | setSecretKeyPath (String secretKeyPath) |
| void | setSecretKeyPathFramework (String secretKeyPathFramework) |
Static Public Attributes | |
| static final Logger | log = Logger.getLogger(ERXCrypto.class) |
Protected Member Functions | |
| Key | defaultSecretKey () |
Private Attributes | |
| Key | _secretDESKey |
| String | _secretKeyPath |
| String | _secretKeyPathFramework |
| ERXDESCrypter | ( | ) |
| ERXDESCrypter | ( | String | secretKeyPathFramework, | |
| String | secretKeyPath | |||
| ) |
Base64 decodes and then DES decrypts the passed in string using the passed in secret key.
Base64 decodes and then DES decrypts the passed in string using the secret key returned by secretKey.
Implements ERXCrypterInterface.
| Key defaultSecretKey | ( | ) | [protected] |
Returns the DES java.security.Key found in the key file. The Key is cached once it's found so further hits to the disk are unnecessary. If the key file cannot be found, the method creates a key and writes out a key file.
DES Encrypts and then base64 encodes the passed in String using the passed in secret key. The base64 encoding is performed to ensure that the encrypted string can be stored in places that don't support extended character sets.
DES Encrypts and then base64 encodes the passed in String using the secret key returned by secretKey. The base64 encoding is performed to ensure that the encrypted string can be stored in places that don't support extended character sets.
Implements ERXCrypterInterface.
| void setSecretKeyPath | ( | String | secretKeyPath | ) |
| void setSecretKeyPathFramework | ( | String | secretKeyPathFramework | ) |
Key _secretDESKey [private] |
String _secretKeyPath [private] |
String _secretKeyPathFramework [private] |
final Logger log = Logger.getLogger(ERXCrypto.class) [static] |
1.5.8