Skip to main content

A Password Card Generator

Project description

Password Card Generator

from PasswordCardGenerator import PasswordCard

keyword = "YourKeyword"

# Create a password card
card1 = PasswordCard(keyword_length=len(keyword))
# You can also specify how long a segment should be (default is 3)
# PasswordCard(keyword_length=len(keyword), segment_length=5)

# incase you dont know what i mean with segment:
# |  1 | lfx  | ...
#        ^^^ this is an segment

# Print the password card
print(card1)
# Get the password for keyword
print(card1.get_password(keyword))

# save the password card as an image (default)
card1.save("test_card.png")
# save the password card as plain text
card1.save("test_card.txt", txt=True)

How it works

You need a Keyword for a Password card to work!
To get the password you take one character at a time.

To get the row: Look in what row your character appears
To get the column: Look at what position your character is.

Then you take what is in [column] in [row] and put it on the end of the password
Do that for every character in your keyword, and you got yourself a secure password

Example:

|    | ABC   | DEF   | GHI   | JKL   | MNO   | PQR   | STU   | VWX   | ZY   | .   |
|----|-------|-------|-------|-------|-------|-------|-------|-------|------|-----|
|  1 | 3T,   | 2C8   | 2lk   | ZMJ   | br]   | sPj   | ,X1   | ZMq   | IAp  | LPG |
|  2 | h2R   | ?XH   | wng   | UkQ   | 7}g   | }'j   | TBg   | hC3   | Hub  | ?pA |
|  3 | GSI   | r0z   | rtm   | n9N   | OID   | B6T   | noV   | P9n   | g,k  | ZRU |
|  4 | wVc   | 1'?   | K6N   | kc%   | EY}   | ]8K   | ImI   | '[Z   | Mv;  | cd1 |
|  5 | nz#   | h}a   | pX6   | ?1;   | D89   | F39   | rDU   | 3l8   | n7T  | 9Qq |
|  6 | U4x   | H[j   | ?Fe   | tJi   | Q.d   | T!6   | .rx   | _'s   | YVh  | q_' |
|  7 | Jyi   | hyN   | 73{   | {73   | Wez   | %{C   | IJ}   | QVm   | ipj  | YK, |
|  8 | LlX   | fYO   | YUg   | !ne   | 1n{   | H{\   | 9_F   | !?!   | rbx  | b#a |

Our keyword is: VerySafe

So we look in what row does V, the first letter, appear in -> row VWX
Now we look at what position the V, the first letter, is -> 1

So we append the 3 characters that are in row VWX at 1 (ZMq)
Our password right now is: ZMq

and repeat!

so we look in what row e, the second letter, does appear in -> row DEF
now we look at what position the e, the second letter, is -> 2

so we append the 3 characters that are in row DEF at 2 (?XH)
Our password right now is: ZMq?XH
...
...
Our password right now is: ZMq?XHB6TMv;rDUU4xhyNfYO

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

PasswordCardGenerator-1.1.3.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PasswordCardGenerator-1.1.3-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file PasswordCardGenerator-1.1.3.tar.gz.

File metadata

  • Download URL: PasswordCardGenerator-1.1.3.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.7

File hashes

Hashes for PasswordCardGenerator-1.1.3.tar.gz
Algorithm Hash digest
SHA256 e947a08005db924391df97522404161cd421a096e2d71666e9a918c074a5f9af
MD5 d19ba1a6b30de243d3cbc8bc4c1f6aa2
BLAKE2b-256 96a15932d42b28c56069d4c4ddb9133b510d99060699b9de8b1a38f3a68be7a0

See more details on using hashes here.

File details

Details for the file PasswordCardGenerator-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: PasswordCardGenerator-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.7

File hashes

Hashes for PasswordCardGenerator-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 65b6a766349879b81113b9fb098430b49a114059f3d1267be7f4a8d828c6a3d8
MD5 32d966cfac14efa14bfbd928804fdb1f
BLAKE2b-256 bc0f6dc75cbd8983d46cbd05abb37f7342890431e34744ad122da0b0f5b42c47

See more details on using hashes here.

Supported by

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