public class XOREncrypt extends Object
© Copyright 2008 Sans Pareil Technologies, Inc.
| Constructor and Description |
|---|
XOREncrypt()
Create a new encrypter instance using the default encryption key.
|
XOREncrypt(String key)
Create a new encrypter instance using the specified key to encrypt or
decrypt data.
|
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
crypt(byte[] value) |
String |
decrypt(byte[] value)
Decrypt the encrypted value and return the original string value.
|
byte[] |
encrypt(String value)
Encrypt the specified string and return the array of bytes that represents
the encrypted value.
|
public XOREncrypt()
public byte[] encrypt(String value)
value - The value to be encrypted.crypt(byte[])public String decrypt(byte[] value)
value - The encrypted bytes that are to be reconstituted.protected byte[] crypt(byte[] value)