Simple encryption
Project description
Milkycow
MILKY COW SIMPLE ENCRYPTION
INSTALATION:
$ python3 -m pip install milkycow
ENCRYPT:
>>> import milkycow as mc
>>> enc1 = mc.encrypt("hello 1", "pass")
>>> enc2 = mc.encrypt("hello 2", "password", rotate=100, layer=1, 3)
DECRYPT:
>>> dec1 = mc.decrypt(enc1, "pass")
>>> print(dec1)
hello 1
>>> dec2 = mc.decrypt(enc2, "password", 100, 1, 3)
>>> print(dec1)
hello 2
FILE ENCRYPTION:
>>> f = mc.encrypt(open("file.txt", "r").read(), "p@55w0rd")
>>> open("file.enc", "w").write(f)
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
milkycow-0.0.5.tar.gz
(2.3 kB
view details)
Built Distribution
File details
Details for the file milkycow-0.0.5.tar.gz
.
File metadata
- Download URL: milkycow-0.0.5.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 337c4be21fdce070a816b5d29649dc0b7da44cff98ff176ef4b7215d289409c2 |
|
MD5 | f0411644e1a0f13dbf7431fa4ec78b04 |
|
BLAKE2b-256 | 182e20432d3666921a978e3e3d0333432ebc66488d71ae8915f5578cc000382f |
File details
Details for the file milkycow-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: milkycow-0.0.5-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42a31bef65fa31e930861f55598ee3c268c9ccb4f80994056121023c2fcef3a3 |
|
MD5 | 245aac5922f4fb265d710a4d6f7ae349 |
|
BLAKE2b-256 | c4e997eba64b97aaa02591edc8f369bc1773d76f1855719b288676e881045f2c |