Skip to content

Ashkanfarhady/SiriusBlack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SiriusBlack

Sirius Black is a service which makes self destructing messages. The original idea is from Haphez.

Sirius Black from Harry Potter series was the Secret Keeper of the potters family, just like this service which keeps secrets.

Secrets can have TTL (in minutes) and a counter (how many times a secret can be read)

Example of setting the secret :

curl 127.0.0.1:8080/create/ -X POST --data '{"body": "A top secret message to James Bond", "ttl":10, "counter": 2}' -H "content-type: application/json"

The above request will be respond with a uuid, for example :

{"key":"99f85673-fdd3-4685-8c19-885aa31c2e5c"}

Example of getitng the secret :

curl 127.0.0.1:8585/99f85673-fdd3-4685-8c19-885aa31c2e5c

And the response will be ( the TTL is now in seconds ):

{"body":"A top secret message to James Bond","ttl":600}

About

A self destructing message creator for your secrets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published