HUB
Sign inSign up

westwind027/gen-pw

By westwind027

•Updated about 4 years ago

Image
0

996

westwind027/gen-pw repository overview

⁠Genpw

Generates a random password.

⁠Direktiv

An example using this container with the following workflow on Direktiv.

id: genpw
description: Generates a random password
functions:
- id: genpw
  image: direktiv/gen-pw:v1
states:
- id: gen-password
  type: action
  action:
    function: genpw
    input:
      length: 10
      symbols: 0
      digits: 3
⁠Input
  • length: the length you want the string to be
  • symbols: how many symbols do you want in the string?
  • digits: how many digits do you want in the string?
⁠Ouput
{
    "password": "8cpPy43KmR"
}

⁠Error

In the case that an error is encountered it will present in the following format:

{
    "errorCode": "com.genpw.error",
    "errorMsg": "Something went wrong"
}

Tag summary

Content type

Image

Digest

sha256:2efd760af…

Size

2.3 MB

Last updated

about 4 years ago

docker pull westwind027/gen-pw