Skip to content

Madhava-mng/Milkycow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

Releases

No releases published

Packages

No packages published

Languages