Encipherer Interface Reference

Inheritance diagram for Encipherer:
Collaboration diagram for Encipherer:

List of all members.


Detailed Description

Enciphers plain texts to cipher texts.

Author:
jhermes

Public Types

enum  EncipherMethod {
  ATBASH = ("de.uni_koeln.spinfo.cryptology.cryptanalysis.ciphergenerators.AtbashCipherGenerator"), GEMATRIA = ("de.uni_koeln.spinfo.cryptology.cryptanalysis.ciphergenerators.GematriaValueGenerator"), PLAYFAIR = ("de.uni_koeln.spinfo.cryptology.cryptanalysis.ciphergenerators.PlayfairCipherGenerator"), POLYBUS = ("de.uni_koeln.spinfo.cryptology.cryptanalysis.ciphergenerators.PolybusCipherGenerator"),
  CAESAR = ("de.uni_koeln.spinfo.cryptology.cryptanalysis.ciphergenerators.CaesarCipherGenerator"), VIGNERE = ("de.uni_koeln.spinfo.cryptology.cryptanalysis.ciphergenerators.VignereCipherGenerator"), POLYGRAPHIA_I = ("de.uni_koeln.spinfo.cryptology.steganalysis.ciphergenerators.PolygraphiaICipherGenerator"), POLYGRAPHIA_III = ("de.uni_koeln.spinfo.cryptology.steganalysis.ciphergenerators.PolygraphiaIIICipherGenerator"),
  POLYGRAPHIA_V = ("de.uni_koeln.spinfo.cryptology.cryptanalysis.ciphergenerators.PolygraphiaVCipherGenerator")
}
enum  ConfigurationElement {
  KEY = ("Key"), ALPHABET = ("Alphabet"), REPLACEMENTS = ("Replacements"), WORD_SUBSTITUTES = ("Substitutes"),
  DELETE_WHITESPACE = ("Whitespace deletion")
}

Public Methods

String encipher (String plainText)
String encipher (List< String > words)
void configure (Map< ConfigurationElement, String > configurations)
Map< String, String > getReplacements ()
Set< Character > getAlphabet ()

Member Enumeration Documentation

enum ConfigurationElement [inherited]

Enumeration of potential configuration elements for Cryptologers.

Author:
jhermes
Enumerator:
KEY 
ALPHABET 
REPLACEMENTS 
WORD_SUBSTITUTES 
DELETE_WHITESPACE 

Enumeration of encipher methods.

Author:
jhermes
Enumerator:
ATBASH 
GEMATRIA 
PLAYFAIR 
POLYBUS 
CAESAR 
VIGNERE 
POLYGRAPHIA_I 
POLYGRAPHIA_III 
POLYGRAPHIA_V 

Method Details

String encipher ( List< String >  words)

Returns the cipher text of the specified cipher word sequence. Some methods (eg. Playfair) delete white spaces.

Parameters:
wordsSequence of words to encipher.
Returns:
cipher text.

Implemented in AtbashCipherGenerator, CaesarCipherGenerator, GematriaValueGenerator, PlayfairCipherGenerator, PolybusCipherGenerator, PolygraphiaVCipherGenerator, VignereCipherGenerator, PolygraphiaICipherGenerator, and PolygraphiaIIICipherGenerator.

String encipher ( String  plainText)
Set<Character> getAlphabet ( ) [inherited]

Returns a set of the alphabet of replacement characters

Returns:
Map<String, String> getReplacements ( ) [inherited]

Returns a map of the replacements that were used by the component

Returns:
map of replacements