Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 897 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 897 Bytes

Encrypt/Decrypt Password Library

Build Status Coverage Status

A python library to encrypt/decrypt passwords. It wraps up Blowfish, but it works with any password length, without being multiple of 8.

Examples

encrypt

>>> from edpwd import encrypt
>>> encrypt('s3cr3t_k3y', 'p4ssw0rd1!')
'cfZ3qDo2UUkLDLOe/PiBRQ=='

decrypt

>>> from edpwd import decrypt
>>> decrypt('s3cr3t_k3y', 'cfZ3qDo2UUkLDLOe/PiBRQ==')
'p4ssw0rd1!'

random_string

>>> from edpwd import random_string
>>> random_string(40, digits=True, letters=True, punctuation=True)
>>> 'PF"DZ(\\T]j8|j<s>S#K%`[b;wI66LU,nl:st1%H1'