Sign inSign up

justinbriard/vspg

By justinbriard

•Updated over 2 years ago

Very Simple Password Generator

Image
1

1.5K

justinbriard/vspg repository overview

Very Simple Password Generator. VSPG is an API providing relatively strong password using common words.

More information on https://vspg.otbm.fr⁠

docker pull justinbriard/vspg
docker run -d -p 8080:8080 vspg

Make the first call

curl --request POST \
  --url http://localhost:8080/v1/elements\
  --header 'content-type: application/json' \
  --data '{
"number_of_words":"5",
"number_of_numbers":"2",
"friendly_separator":"0",
"language":"fr_simple"}'

Result:

{
   "status":"ok",
   "result":[
      "!",
      "76",
      "invente",
      "productions",
      "verificateur",
      "vitro",
      "vigueur"
   ]
}

And the second call

curl --request POST \
  --url http://localhost:8080/v1/password \
  --header 'content-type: application/json' \
  --data '{
"number_of_words":"3",
"number_of_numbers":"2",
"friendly_separator":"1",
"language":"en"}'

Result :

{
   "status":"ok",
   "result":"LentoidHarosethZooplanktonic'13"
}

And the access_key Endpoint

curl --request GET  \
  --url http://localhost:8080/v1/access_key

Result :

{
    "status": "ok",
    "result": [
        {
            "access_key": "PFP5NIM1IJI69JZYCDDD",
            "secret_key": "LqIDaoFWuF0IHGuHpJXjXOCz42FScim3pfX7XzRf"
        }
    ]
}

Tag summary

Content type

Image

Digest

sha256:0f4b844fa…

Size

26.5 MB

Last updated

over 2 years ago

docker pull justinbriard/vspg