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
Release history Release notifications | RSS feed
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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file picrypt-1.0.3.tar.gz.
File metadata
- Download URL: picrypt-1.0.3.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20f0e2f2650dc20070efbe206d89ba942a071b9518f6869baaaf3e9ae335fe5c
|
|
| MD5 |
34698a5b9b4aaa1153bd88ad0bff9889
|
|
| BLAKE2b-256 |
227f90965b4d2e5fa476249985f7945f2da8be7cc8e169fb58c5bfb135a72115
|
File details
Details for the file picrypt-1.0.3-py3-none-any.whl.
File metadata
- Download URL: picrypt-1.0.3-py3-none-any.whl
- Upload date:
- Size: 2.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
adee518b997dd9f1dd3c2f58a3c5cb19d876359662ad83ada9477a5f0107e26a
|
|
| MD5 |
570cf62252086043c4c73926ddab1543
|
|
| BLAKE2b-256 |
7bb029ee6902e8541e2f084a984ab7d35ef8509c5c7276615c5ef7673b35d9dd
|