hcrypto.engines
Class NullKey
java.lang.Object
hcrypto.cipher.HistoricalKey
hcrypto.engines.NullKey
public class NullKey
- extends HistoricalKey
Represents a null key--i.e., a key for a trivial cipher that makes no
transformation to the plaintext. The key can simply be the empty string.
|
Method Summary |
java.lang.String |
getAlgorithm()
This abstract method should be implemented in the algorithm-specific subclass. |
void |
init(java.lang.String keyspec)
This abstract method should be implemented in the algorithm-specific subclass. |
void |
init(java.lang.String keyword,
Alphabet alpha1,
Alphabet alpha2)
ADDED: 4/5/03 by RAM
This should be implemented in the subclass. |
| Methods inherited from class hcrypto.cipher.HistoricalKey |
getAlphabet, getBlocksize, getCipherKey, getCTAlphabet, getInstance, getKeyDescriptorPrompt, getKeyword, getPlainKey, initKey, initKey, invertKey, printAlphabets, removeDuplicateChars |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_KEY_DESCRIPTOR_PROMPT_STRING
public static final java.lang.String DEFAULT_KEY_DESCRIPTOR_PROMPT_STRING
- See Also:
- Constant Field Values
NullKey
public NullKey()
getAlgorithm
public java.lang.String getAlgorithm()
- Description copied from class:
HistoricalKey
- This abstract method should be implemented in the algorithm-specific subclass.
- Specified by:
getAlgorithm in class HistoricalKey
init
public void init(java.lang.String keyword,
Alphabet alpha1,
Alphabet alpha2)
throws java.lang.Exception
- Description copied from class:
HistoricalKey
- ADDED: 4/5/03 by RAM
This should be implemented in the subclass.
- Specified by:
init in class HistoricalKey
- Throws:
java.lang.Exception
init
public void init(java.lang.String keyspec)
throws java.lang.Exception
- Description copied from class:
HistoricalKey
- This abstract method should be implemented in the algorithm-specific subclass.
- Specified by:
init in class HistoricalKey
- Throws:
java.lang.Exception