| java.lang.Object com.vividsolutions.jump.util.SimpleStringEncrypter
SimpleStringEncrypter | public class SimpleStringEncrypter (Code) | | Provides a simple encyrption/decryption mechanism for ASCII string values.
The algorithm does not provide strong encryption, but serves
as a way of obfuscating the value of short strings (such as passwords).
The code symbol set is drawn from the set of printable ASCII symbols.
The encrypted strings are longer than the clear text (roughly double in length).
A random element is used, so that different encryptions of the same clear
text will result in different encodings.
|
SimpleStringEncrypter | public SimpleStringEncrypter()(Code) | | Creates a new encrypter
|
decrypt | public String decrypt(String codeText)(Code) | | Decrypts a code string.
Parameters: codeText - the code to decrypt the clear text for the code throws: IllegalArgumentException - if the code string is invalid |
encrypt | public String encrypt(String clearText)(Code) | | Encrypts a string.
Parameters: clearText - the string to encrypt the encryted code |
setEncryptedSymbol | public void setEncryptedSymbol(char c, char[] code, int i)(Code) | | |
|
|