hcrypto.engines
Class RailFenceKey

java.lang.Object
  |
  +--hcrypto.cipher.HistoricalKey
        |
        +--hcrypto.engines.RailFenceKey

public class RailFenceKey
extends HistoricalKey


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

DEFAULT_KEY_DESCRIPTOR_PROMPT_STRING

public static final java.lang.String DEFAULT_KEY_DESCRIPTOR_PROMPT_STRING
A description for a RailFence Key.

DEFAULT_KEYWORD_STRING

public static final java.lang.String DEFAULT_KEYWORD_STRING
A default key value.
Constructor Detail

RailFenceKey

public RailFenceKey()
Method Detail

init

public void init(java.lang.String keyspec)
          throws java.lang.Exception
Creates a RailFenceKey with the specified keyspec.
Overrides:
init in class HistoricalKey
Parameters:
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".

getAlgorithm

public java.lang.String getAlgorithm()
Returns the name of the algorithm "RailFence".
Overrides:
getAlgorithm in class HistoricalKey