Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 565 Bytes

README.md

File metadata and controls

35 lines (26 loc) · 565 Bytes

Milkycow

python package for simple and dynamic 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)

DECRYPT:

>>> dec1 = mc.decrypt(enc1, "pass")
>>> print(dec1)
hello 1
>>> dec2 = mc.decrypt(enc2, "password", 100)
>>> print(dec1)
hello 2

FILE ENCRYPTION:

>>> f =  mc.encrypt(open("file.txt", "r").read(), "p@55w0rd")
>>> open("file.enc", "w").write(f)