Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.math.BigInteger;
- import java.util.HashMap;
- /*
- *
- * This class represents a HashMap like a dictionary: On the one side the clear text and on the other side the cipher text.
- *
- * @author mitosis
- *
- */
- public class Dictionary {
- private HashMap<Integer, BigInteger> dictionary = new HashMap<Integer, BigInteger>();
- /**
- *
- */
- public void addEntry(int clearNumber, BigInteger cryptedNumber) {
- dictionary.put(clearNumber, cryptedNumber);
- }
- public HashMap<Integer, BigInteger> getDictionary() {
- return dictionary;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment