Skip to main content

Simple cryptography

Project description

picrypt

'picrypt' is a simple cryptographer.

Install

pip install picrypt

Example

import picrypt

token = "banana" # you can use picrypt.generate_token() to generate a random token
encryptor = picrypt.Encryptor(token)
encrypted = encryptor.encrypt("hello world")
decrypted = encryptor.decrypt(encrypted)
print("Encrypted:", encrypted)
print("Encrypted:", decrypted)

Result:

Encrypted:  [63336, 61509, 65772, 65772, 67599, 19488, 72471, 67599, 69426, 65772, 60900]
Decrypted:  hello world

Use the token to encrypt and decrypt.

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

picrypt-1.0.3.tar.gz (1.9 kB view hashes)

Uploaded Source

Built Distribution

picrypt-1.0.3-py3-none-any.whl (2.0 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