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.1.tar.gz
(2.4 kB
view hashes)