public class Cryptic
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
Cryptic()
Protected no-arg constructor has null cryptic.
|
|
Cryptic(java.lang.String input)
Public constructor with input string.
|
|
Cryptic(java.lang.String input,
java.lang.String password)
Public constructor with input and password.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
decrypt()
Gets the decrypted string.
|
java.lang.String |
decrypt(java.lang.String password)
Gets the decrypted string using a password.
|
java.lang.String |
encrypt(java.lang.String content)
Encrypts the input and saves in cryptic form.
|
java.lang.String |
encrypt(java.lang.String content,
java.lang.String password)
Encrypts the input with a password and saves in cryptic form.
|
java.lang.String |
getCryptic()
Gets the cryptic.
|
static XML.ObjectLoader |
getLoader()
Returns an ObjectLoader to save and load data for this class.
|
void |
setCryptic(java.lang.String encrypted)
Sets the cryptic.
|
protected Cryptic()
public Cryptic(java.lang.String input)
input
- UTF-8 String to encryptpublic Cryptic(java.lang.String input, java.lang.String password)
input
- UTF-8 String to encryptpublic java.lang.String encrypt(java.lang.String content)
input
- UTF-8 String to encryptpublic java.lang.String encrypt(java.lang.String content, java.lang.String password)
input
- UTF-8 String to encryptpublic java.lang.String decrypt()
public java.lang.String decrypt(java.lang.String password)
password
- the passwordpublic java.lang.String getCryptic()
public void setCryptic(java.lang.String encrypted)
encrypted
- an encrypted stringpublic static XML.ObjectLoader getLoader()