|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--hcrypto.cipher.HistoricalKey | +--hcrypto.engines.RailFenceKey
Field Summary | |
static java.lang.String |
DEFAULT_KEY_DESCRIPTOR_PROMPT_STRING
A description for a RailFence Key. |
static java.lang.String |
DEFAULT_KEYWORD_STRING
A default key value. |
Fields inherited from class hcrypto.cipher.HistoricalKey |
alphabet, blocksize, ciphAlphabet, cipherAlphabet, keyDescriptorPrompt, keyspec, keyword, plainAlphabet |
Constructor Summary | |
RailFenceKey()
|
Method Summary | |
java.lang.String |
getAlgorithm()
Returns the name of the algorithm "RailFence". |
void |
init(java.lang.String keyspec)
Creates a RailFenceKey with the specified keyspec. |
Methods inherited from class hcrypto.cipher.HistoricalKey |
getAlphabet, getBlocksize, getCiphAlphabet, getCTAlphabet, getInstance, getKeyDescriptorPrompt, getKeyword, getPlainAlphabet, initAlphabets, initKey, printAlphabets, removeDuplicateChars |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String DEFAULT_KEY_DESCRIPTOR_PROMPT_STRING
public static final java.lang.String DEFAULT_KEYWORD_STRING
Constructor Detail |
public RailFenceKey()
Method Detail |
public void init(java.lang.String keyspec) throws java.lang.Exception
init
in class HistoricalKey
keySpec
- takes the form "blocksize,keyword/alphabet",
i.e. "3/azAZ09" for example, which would be mapped into
the instance keyword = 3,a string, and sets
the alphabet as a String with the value "azAZ09".public java.lang.String getAlgorithm()
getAlgorithm
in class HistoricalKey
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |