This is a simple Sinatra application for generating and providing strings full of random characters via HTTP.
Yeah, we know. Deal with it.
This is a proof of concept and no guarantee is made to the fitness (or,
- Ruby v1.9.3 or better; anything less would be uncivilised.
- The
sinatra
andxml-simple
gems, along with other standard modules.
So the API can deal with this : /:enc/:charset/:len/:num
- Valid
:enc
are:p
for plain textj
for JSONy
for YAMLh
for HTMLx
for XML
- Valid
:charset
are:ab
for basic alpha-numeric charactersas
for "safe" alpha-numeric characters (no characters that are too similar visually)hex
for hexadecimal charactersnum
for numbers only
:len
is length of each result:num
is the number of results
Run it like this : $ ruby ./raas.rb
Released under the ASL 2.0; see LICENSE
for details.