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"
]
}