Skip to content

secretbin-io/secretbin-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SecretBin-Python

This module allows for automatic secret creation in SecretBin. Note however this module currently only support creating AES256-GCM secrets. XChaCha20 is currently not supported.

Installation

pip3 install git+https://github.com/secretbin-io/secretbin-python.git@v2.1.1

Usage

from secretbin import Secret, SecretBin

sb = SecretBin("http://localhost:8000")

secret = Secret(message="Hello, world!")
secret.add_file_attachment(file="README.md")
link = sb.submit_secret(secret=secret,
                        password="secret",
                        expires="1hr",
                        burn_after=1)
print(link)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages