|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.security.Fog
public class Fog
A pseudo-encryption algorithm that makes the data appear to be encrypted. This algorithm is cryptographically extremely weak, and should only be used to hide data from reading the plain text using a text editor.
| Field Summary |
|---|
| Fields inherited from interface org.h2.security.BlockCipher |
|---|
ALIGN |
| Constructor Summary | |
|---|---|
Fog()
|
|
| Method Summary | |
|---|---|
void |
decrypt(byte[] bytes,
int off,
int len)
Decrypt a number of bytes. |
void |
encrypt(byte[] bytes,
int off,
int len)
Encrypt a number of bytes. |
int |
getKeyLength()
Get the length of the key in bytes. |
void |
setKey(byte[] key)
Set the encryption key used for encrypting and decrypting. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Fog()
| Method Detail |
|---|
public void encrypt(byte[] bytes,
int off,
int len)
BlockCipher
encrypt in interface BlockCipherbytes - the byte arrayoff - the start indexlen - the number of bytes to encrypt
public void decrypt(byte[] bytes,
int off,
int len)
BlockCipher
decrypt in interface BlockCipherbytes - the byte arrayoff - the start indexlen - the number of bytes to decryptpublic int getKeyLength()
BlockCipher
getKeyLength in interface BlockCipherpublic void setKey(byte[] key)
BlockCipher
setKey in interface BlockCipherkey - the key
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||