Metadata-Version: 2.1
Name: equation-cipher
Version: 0.0.2
Summary: An Encryption algorithm for encrypting ay text.
Home-page: https://gitlab.com/malhar_stories/equeation_cipher
Author: Shounak Joshi
Author-email: shounakjoshi16@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent

# equation_cipher

The encryption algorithm which uses two steps encryption.

This algorithm will be a half way decryptable algorithm; i.e. To get its
decryption you will need to encrypt it partially and encrypt it partially to
check if the encrypted form of the text is right form or not.

# Features

Uses one way encryption and half way decryption.

Creates different and unique encryption of the same target string every second.

Can be partially decrypted.


# Usage

```
$ pip install equation-cipher
``` 

```
import datetime
from cipher.equation_cipher import Encrypter
from cipher.equation_decipher import Decrypter

target = 'hello@123'
encrypter_obj = Encrypter()

encrypted_target = encrypter_obj.encrypt(target)
print("encrypted string", encrypted_target)

# here datetime object is required, since the algorithm uses date as well as time.
encryption_by_date = encrypter_obj.encrypt_by_date(target, datetime.datetime.now())
print("Encrypted by date:", encryption_by_date)

# decryption
decrypter_obj = Decrypter()
decrypted_text_check = ('hello@123', encrypted_target)
if encrypted_text_check:
    print("The passed string matches the passed encrypted pattern.")
else:
    print("The passed string does not match the passed encrypted pattern.")
```


