Skip to content

dandrews/passphrase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

passphrase api

A simple API for generating secure passphrases, inspired by http://xkcd.com/936/ and http://passphra.se/

For more context, read http://preshing.com/20110811/xkcd-password-generator

This API is built in Node.js, based on the following tutorial: http://coenraets.org/blog/2012/10/creating-a-rest-api-using-node-js-express-and-mongodb/

This API supports a GET request only:


curl -i -X GET http://localhost:3000/passphrase

returns:


{
  "passphrase": "alike indicate examine angle"
}

You can optionally pass in an argument to generate n passphrases:


curl -i -X GET http://localhost:5000/passphrase/3

returns:


{
  "n": 3,
  "passphrases": [
    "chance dead struggle consist",
    "mysterious mouth represent herd",
    "diameter operation telephone planned"
  ]
}

About

A simple API for generating secure passphrases, inspired by http://xkcd.com/936/ and http://passphra.se/

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published