Library that contains cipher algorithms for any human-language.
For now:
- only viginere algorithm implemented
- only EN, RU embedded
- You could add any language support with one line, but need tests, see Usage
To install the Library just clone it, it needs no external library dependencies
git clone https://github.com/sunCelery/cipher.git
Python Interactive Mode examples:
adding Turkish language
>>> from cipher import *
>>> Alphabet.add_alphabet("TR", "abcçdefgğhıijklmnoöprsştuüvyz")
encrypt / decrypt
>>> encrypt(viginere, "örnek", "doldurmak", "TR")
'şğbhğ'
>>> decrypt(viginere, 'şğbhğ', "doldurmak", "TR")
'örnek'
- I don't like how decrypt and encrypt funcrion written, I think it's bad practice to give function to them as an argument, mb I wrong?
- Add other algorithms