| java.lang.Object org.jamwiki.utils.Encryption
Encryption | public class Encryption (Code) | | Provide capability for encrypting and decrypting values. Inspired by an
example from http://www.devx.com/assets/sourcecode/10387.zip.
|
Method Summary | |
public static String | decrypt64(String encryptedString) Unencrypt a String value using the DES encryption algorithm.
Parameters: encryptedString - The encrypted String value that is to be unencrypted. | public static String | encrypt(String unencryptedString) | public static String | encrypt64(String unencryptedString) Encrypt a String value using the DES encryption algorithm.
Parameters: unencryptedString - The unencrypted String value that is to be encrypted. | public static String | encrypt64(byte[] unencryptedBytes) Encrypt a String value using the DES encryption algorithm.
Parameters: unencryptedBytes - The unencrypted String value that is to be encrypted. | public static String | getEncryptedProperty(String name, Properties props) If a property value is encrypted, return the unencrypted value.
Parameters: name - The name of the encrypted property being retrieved. | public static void | setEncryptedProperty(String name, String value, Properties props) Encrypt and set a property value. |
ENCRYPTION_KEY | final public static String ENCRYPTION_KEY(Code) | | |
decrypt64 | public static String decrypt64(String encryptedString)(Code) | | Unencrypt a String value using the DES encryption algorithm.
Parameters: encryptedString - The encrypted String value that is to be unencrypted. An unencrypted version of the String that was passed to this method. |
encrypt64 | public static String encrypt64(String unencryptedString) throws Exception(Code) | | Encrypt a String value using the DES encryption algorithm.
Parameters: unencryptedString - The unencrypted String value that is to be encrypted. An encrypted version of the String that was passed to this method. |
encrypt64 | public static String encrypt64(byte[] unencryptedBytes) throws Exception(Code) | | Encrypt a String value using the DES encryption algorithm.
Parameters: unencryptedBytes - The unencrypted String value that is to be encrypted. An encrypted version of the String that was passed to this method. |
getEncryptedProperty | public static String getEncryptedProperty(String name, Properties props)(Code) | | If a property value is encrypted, return the unencrypted value.
Parameters: name - The name of the encrypted property being retrieved. The unencrypted value of the property. |
setEncryptedProperty | public static void setEncryptedProperty(String name, String value, Properties props) throws Exception(Code) | | Encrypt and set a property value.
Parameters: name - The name of the encrypted property being retrieved. Parameters: value - The enencrypted value of the property. Parameters: props - The property object in which the property is being set. |
|
|