Sign inSign up

boris/pwgen-web

By boris

•Updated almost 3 years ago

Image
0

3.3K

boris/pwgen-web repository overview

⁠Password Generator

Motivation: A quick way to create random password without installing anything!

⁠How to by example:

  • Create one password of XX chars long: curl -L pwgen.btmn.dev/20
  • Create XX passwords of YY chars long: curl -L pwgen.btmn.dev/40/5

So this thing basically receives two parameters: length and count. A few examples:

➜ curl -L pwgen.btmn.dev/40
oWVh743gZZkIgYL5NKxwJL$DHCT8T74Z9CNBuZRv
➜ curl -L pwgen.btmn.dev/25/2
CHraelyUiGyAhNC)yyoOxFnv9
KfHg5Z8%JD5oJHw68BdB3sCD4

⁠Real life example (a.k.a. live-demo):

This code is currently running on a docker, available at pwgen.btmn.dev⁠. You can use it to generate your passwords following examples above.

⁠Dockerize all the things!

docker run -d boris/pwgen-web available on Docker Hub⁠

⁠Running locally

git clone https://github.com/boris/pwgen.git
cd pwgen
pip install -r requirements.txt
python manage.py runserver

⁠Running in production

What you see at pwgen.btmn.dev⁠ is currently running in kubernetes using the deployment described at pwgen-deployment.yaml⁠.

The way to run it is:

kubectl create -f https://raw.githubusercontent.com/boris/pwgen/master/pwgen-deployment.yaml

Tag summary

Content type

Image

Digest

sha256:d32ee46a9…

Size

153.7 MB

Last updated

almost 3 years ago

docker pull boris/pwgen-web