public class SimpleStringEncrypter
extends java.lang.Object
Constructor and Description |
---|
SimpleStringEncrypter()
Creates a new encrypter
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
decrypt(java.lang.String codeText)
Decrypts a code string.
|
java.lang.String |
encrypt(java.lang.String clearText)
Encrypts a string.
|
void |
setEncryptedSymbol(char c,
char[] code,
int i) |
public java.lang.String encrypt(java.lang.String clearText)
clearText
- the string to encryptpublic void setEncryptedSymbol(char c, char[] code, int i)
public java.lang.String decrypt(java.lang.String codeText)
codeText
- the code to decryptjava.lang.IllegalArgumentException
- if the code string is invalid