Skip to main content

Command line tool utility to generate random entropic password

Project description

Random Password Generator

version python required

What is rpg?

Rpg stands for Random Password Generator, it's a utility command line tool that allows you to generate random entropic and safe password. Rpg check by default every single password that generates into Have I Been Pwned Passwords leaks database.

Installation

pip3 install random-password-genrator-cli

Usage

rpg [OPTIONS] <pass-length>

<pass-length> it's your desire password length, please note that it MUST BE between 12 and 90 characters We do this to ensure to provide strong passwords. In our opinion you should never use a password lower then 16 characters.

[OPTIONS] are:

  • -n, --number <pass-number>: generate <pass-number> passwords
  • -o, --output <out-file>: write generated passwords into <out-file>
  • --exclude-charsets [l,u,d,p]: remove lowercase, uppercase, digits or punctuation charsets *
  • --no-safe: don't check passwords validity in Have I Been Pwned Passwords *
  • -v, --verbose: print verbose output
  • -V, --version: print rpg version
  • -h, --help: print help text

*: Using this option will print a warning message. The execution will then proceed as defined by the user.

Examples

Generate a 20 character password:

$ rpg 20
Passwords:
y2-1Uf/XAR5K<2[2x~gb

The entropy of generated password is: 131.09177703355275

Generate five 20 character passwords

$ rpg -n 5 20
Generating passwords  [####################################]  5/5
Passwords:
87VuRR4{O1?5=ngBzm(-
$.G9D-t7~8Y2M0mk>uZw
AL74H2tM-8a|0(D'z{gf
4[+WfS9\6u3FeP"Gzf%6
"Blox37j8`\^T3h2ALH)

The entropy of generated password is: 131.09177703355275

Generate a 20 character password without lower-case charsets:

$ rpg --exclude-charsets l 20
You are going to generate passwords without one or more of default charsets!
RPG cares a lot for your security, it's recommended to avoid this practice if possible!

Passwords:
>C1#8A`7D7V|]]95RB\7

The entropy of generated password is: 121.7492568250068

You can see here the warning message

Generate five 20 character passwords and save them into pw-out.txt

$ rpg -n 5 -o pw_out.txt 20
Generating passwords  [####################################]  5/5

pw-out.txt

$ cat pw_out.txt 
Passwords:
8YvW(8m5Gy'\i1G_U!2e
l64@%`V27kOE^rCyG2o]
El_0@19$#reG2ncLK^O4
WAAP;7`8=f{3gy4He8x&
4Y<zl2-4Xi*e*X11(VTz

Entropy: 131.09177703355275

Password strength is determined with this chart:
< 28 bits       = Very Weak; might keep out family members
28 - 35 bits    = Weak; should keep out most people, often good for desktop login passwords
36 - 59 bits    = Reasonable; fairly secure passwords for network and company passwords
60 - 127 bits   = Strong; can be good for guarding financial information
128+ bits       = Very Strong; often overkill

Advice

  1. Use rpg to generate random entropic password
  2. Avoid to use a short password, try to use only passwords with 16+ characters.
  3. Do not share your passwords with any one.
  4. Do not reuse a password.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

random-password-generator-cli-1.0.2.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file random-password-generator-cli-1.0.2.tar.gz.

File metadata

  • Download URL: random-password-generator-cli-1.0.2.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.5.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for random-password-generator-cli-1.0.2.tar.gz
Algorithm Hash digest
SHA256 b04d66e5af09e27216ba4d4da3914a3df58f115f6ae1aded7a902b77d0e61dad
MD5 ea9f50f70e4f24ffe5b733e5235db9ae
BLAKE2b-256 fba375f49af1de2ad15412ed082c3b3f472cb08b4f8d19a8cea7d7c2953885b2

See more details on using hashes here.

File details

Details for the file random_password_generator_cli-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: random_password_generator_cli-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.5.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for random_password_generator_cli-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c2725780062dc259420c74aaa9b389f26d8103803bf9cfef7abfc879dd46b849
MD5 4bfb3ef85d8f7c4f8b3fcb5eb7f4efba
BLAKE2b-256 a4dc515f8f654f7477ffc6af47d1fc0296015e4e59198f3428aa8c6ec7a8d651

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page