Skip to main content

An Encryption algorithm for encrypting ay text.

Project description

# 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 = decrypter_obj.match_decrypt('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.")
```


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

equation_cipher-0.0.3.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

equation_cipher-0.0.3-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page