Skip to content
thomaswhitcombPublic

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

48 Commits

Folders and files

Repository files navigation

Casper

Casper is a Clojure web application that provides a friendly, easy way to create one-time secrets. Create a secret, get a unique URL that returns your secret once. The next time the URL is queried (GET), the secret is gone.

Your secret can be anything you want. Plain text, JSON, a private key or a public key. Anything you can put into a POST.

Your secret is safe with us until it is viewed with the one-time URL. We encrypt (AES 256) it and save it until you retreive it. Once you retrieve it, we delete it.

API

GET /create

Returns HTML for a simple form for creating your secret. Click "create" and you get a one-time URL for displaying your secret.

  • 200 - Secret created and one-time password URL returned.

GET /secret/{unique-secret-identifier}

Returns the original secret as a plain text string

  • 404 - Secret not found and already viewed

  • 410 - Secret TTL met/exceeded

POST /create

Used to create your secrets from a script. Use the secret and ttl form variables to transmit your secret. Here is an example with curl: curl -v --data-urlencode "secret=your personal secret" --data-urlencode "ttl=60"" Your unique one-time URL returned from the curl call as a plain text string.

  • 201 - Secret created and one-time password URL returned.

  • 404 - Missing secret and/or ttl form name

POST /auto

Used to create a random secret from a script. Use JSON to specify the size and ttl variables for your request. Here is an example with curl: curl -v --data-urlencode "{"size":"16" ,"ttl":"60"}" Your unique one-time URL returned from the curl call as a plain text string.

  • 201 - Secret created and one-time password URL returned.

  • 404 - Missing size and/or ttl form name

Developers

  1. Get leiningen (the awesome clojure project automation tool),
  2. Clone the repository
  3. lein run "a port number"

Thanks

Thanks to Tommy Bishop for the great idea.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages