Skip to content

MisoMadao/pysecret-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pysecret_manager

Very simple python module to manage secrets

requirements

criptography

install module

pip setup.py install

usage

as module

>>> from secret_manager import SecretManager
>>> from getpass import getpass
>>> with SecretManager(getpass('master key: ')) as sm:
...     sm.add_secret('test')
... 
master key: 
secret value: 
>>> 
>>> with SecretManager(getpass('master key: ')) as sm:
...     sm.get_secret('test')
... 
master key: 
'secretvalue'
>>> 
>>> with SecretManager(getpass('master key: ')) as sm:
...     sm.del_secret('test')
... 
master key: 
>>>

command line

(pysecret-manager) $ ./secret_manager.py -n test add
master key: 
secret value: 
INFO:root:secret succesfully added
(pysecret-manager) $ ./secret_manager.py -n test get
master key: 
secretvalue
(pysecret-manager) $ ./secret_manager.py getall
master key: 
test
(pysecret-manager) $ ./secret_manager.py -n test del
master key: 
INFO:root:secret successfully deleted
(pysecret-manager) $ ./secret_manager.py -n test add
master key: 
ERROR:root:error in decryption

About

Simple secret manager in python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages