|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthcrypto.cipher.CipherEngine
hcrypto.cipher.BlockCipher
hcrypto.engines.RailfenceEngine
public class RailfenceEngine
Implements the Historical Railfence cipher.
| Constructor Summary | |
|---|---|
RailfenceEngine()
Creates a RailFenceEngine and sets the alphabetRangeOptions instance variable to "111111", which translates to all six alphabet options for both the plaintext and ciphertext alphabets. |
|
| Method Summary | |
|---|---|
java.lang.String |
engineDecode(java.lang.String cText)
engineDecode() |
java.lang.String |
engineEncode(java.lang.String str)
This abstract method must be implemented in the subclass to perform basic encrypting step for a given cipher algorithm. |
| Methods inherited from class hcrypto.cipher.CipherEngine |
|---|
getAlphabetRangeOptions |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RailfenceEngine()
| Method Detail |
|---|
public java.lang.String engineEncode(java.lang.String str)
throws java.lang.Exception
BlockCipher
java.lang.Exceptionpublic java.lang.String engineDecode(java.lang.String cText)
cText - is the entire cryptotext, which is assumed in this
implementation to be some number of evenly-sized blocks of length blocksize
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||