https://github.com/n1ghtf1re/simple-ciphers
The library contains three simple ciphers: rail-fence, rotating square and wizner cipher
https://github.com/n1ghtf1re/simple-ciphers
chiper cryptography cryptography-algorithms rail-fence vigener vigener-cipher vigenere-cipher
Last synced: 7 months ago
JSON representation
The library contains three simple ciphers: rail-fence, rotating square and wizner cipher
- Host: GitHub
- URL: https://github.com/n1ghtf1re/simple-ciphers
- Owner: N1ghtF1re
- License: mit
- Created: 2018-09-02T17:59:11.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-27T07:58:47.000Z (about 7 years ago)
- Last Synced: 2025-02-28T07:54:57.410Z (7 months ago)
- Topics: chiper, cryptography, cryptography-algorithms, rail-fence, vigener, vigener-cipher, vigenere-cipher
- Language: Java
- Homepage:
- Size: 317 KB
- Stars: 5
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Simple ciphers
## About the library
The library contains three simple ciphers: rail-fence, rotating square and wizner cipher## Class RailFence:
Methods:
- encode(String message, int key) - return encoded message with a cipher "Rail-Fence" with the specified key.
- decode(String message, int key) - return decoded message with a cipher "Rail-Fence" with the specified key.## Class VigenerCipher:
Constructors:
- VigenerCipher() - default, RUSSIAN ALPHABET
- VigenerCipher(String aplhaber) - With the assignment the alphabet. The characters are written consecutively by a string. Example: "АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ"Methods:
- encode(String message, str keyword) - return encoded message with a Vigener cipher with the specified keyword.
- decode(String message, str keyword) - return decoded message with a Vigener cipher with the specified keyword.## Class RotatingSquare:
Constructors:
- RotatingSquare() - default, used default key.
- RotatingSquare(int[][] key) - With the assignment the key, key - the array of "holes" in the square of the format [ [x,y], [x,y], ..]. Example: {{0,0}, {3,1}, {2,2}, {1,3}}Methods:
- encode(String message) - return encoded message with a cipher "Rotating Square".
- decode(String message) - return decoded message with a cipher "Rotating Square".