|
AXL Software | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
ObjectBoojum
A Boojum for keeping secrets. (Boojum - possibly a metaphor for transforming) from the poem "The Hunting of the Snark" by Lewis Carroll.
This is described in "Practical Cryptography" by Niels Ferguson and Bruce Schneier.
It doesn't hold the secret value but the mask and XOR'd value of the secret.
Each few times the getSecret() is called the boojum is recalculated.
Intermediate values are cleared before being released to the garbage collector.
The idea is to keep computer memory from imprinting secret values in memory. While this boojum half adheres to that idea it's job is to make a secret a little hard to find by scanning for it's plain text value.
| Constructor Summary | |
Boojum(byte[] secret)
Constructor. |
|
| Method Summary | |
void |
clear()
Clear the boojum value. |
byte[] |
getSecret()
Get the secret bytes. |
char[] |
getSecretChars()
Get the secret as an array of characters. |
static void |
main(String[] a)
Test of the Boojum. |
| Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Boojum(byte[] secret)
secret - Secret.| Method Detail |
public void clear()
public byte[] getSecret()
public char[] getSecretChars()
public static void main(String[] a)
|
AXL Software | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||