Encrypterish is encrypting (and decrypting) program which encrypts a given string input and provides an encrypted output. It also supports decrypting a given encrypted string input (it has to encrypted from Encrypterish btw).
In the codebase, we have two base classes,
- Encryption
- Decryption
The Encrypt class takes a string input (original string) and then shuffles and gives the output.
Behind the scenes, the shuffle method which actually shuffles it iterates over the word.
While iterating it replaces each letter to the 3rd letter respective to it.
As for numbers, the shuffle functions replaces them with their assigned symbol in keyboard. If you look at the keyboard, you will find that every number has a assigned punctuation symbol which can be accessed using the Shift
key. The process for shuffling punctuations is just the opposite, it replaces the symbol with it's assigned number on the keyboard.
As for these letters, the shuffle method replaces them with abc
respectively.
- Example
x is replaced with a
y is replaced with b
z is replaced with c
This class is the exact opposite of the Encrypt class. After being shuffled from the Encrypt class, this class decrypts the string to it's original state.
The hardwork in this class is all done by the decrypt method.
This method iterates over the word and replaces the letter to the letter 3 places before it.
- Example
d is replaced with a
e is replaced with b
...and so on
As for numbers, they are replaced with their corresponding symbol in the keyboard.
And punctuations are replaced with their corresponding number in the keyboard
- Example
! is replaced 1
@ is replaced with 2
1 is replaced with !
2 is replaced with @
..so as we can clearly see, this class is the exact opposite of the Encrypt class.
- Clone the repository (
git clone https://github.com/Coolstormaction/Encrypterish
) - Rename the new folder from
Encrypterish
toencrypterish
- Move the folder to your codebase (as pip package is not available yet)
- Follow the below steps
from encrypterish.encryption import Encryption
from encrypterish.decryption import Decryption
# Encrypting a string
encrypt = Encryption("example")
encrypted_string = encrypt.shuffle()
# Decrypting a string
decrypt = Decryption(encrypted_string)
decrypted_string = decrypt.decrypt()
print(encrypted_string, decrypted_string)
# More code ...
If you notice bugs or want to share feedback, contact me through any of the below mediums
- Discord - Ignis#3040
- Email - [email protected]
Any questions and feedback are heartily welcome 😄.
More improvements on the shuffling process and pip package for encrypterish are going to be rolled on in the next few updates!