Simple Crypting library for python
Project description
Secrypt
Simple Crypting library for python
Usage:
import secrypt
# create a crypt object
c = secrypt.Crypt(key=0.0) # key : 0.0 is the default
# encrypt string
data = "hello world!"
en = c.encrypt(data) # returns encrypted data
# decrypt string
de = c.decrypt(en) # returns original data
# write encrypted file
content = """Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum."""
c.write("test.txt", content) # returns size of encrypted file
# read encrypted file
retrieved = c.read("test.txt") # return original file data
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
secrypt-2.0.1.tar.gz
(2.2 kB
view details)
Built Distribution
File details
Details for the file secrypt-2.0.1.tar.gz
.
File metadata
- Download URL: secrypt-2.0.1.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26faf152967cb6b2dcdaed83711eacdd5d43349de7880c23b7fb846684481525 |
|
MD5 | 74e6d9dbd173e775ed912df56a5c407f |
|
BLAKE2b-256 | cd613c402377ad6892f14fb74626a0e07782ee3dffb9609444a3d2f22ef7ec9f |
File details
Details for the file secrypt-2.0.1-py3-none-any.whl
.
File metadata
- Download URL: secrypt-2.0.1-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8691116cc2da51753a6933aabecda476861a04779a68acd0053d2b82fcd0aa92 |
|
MD5 | b4e5e5b630d8830ed18ee93ea8d5bb9a |
|
BLAKE2b-256 | ff06033ae37ea1a2fe1dfb4a86b2c253822a155aa8f4f779724c0562432637cc |