Categorygithub.com/sultaniman/pwc
repositorypackage
0.0.0-20240623185058-b93bef0ccd2d
Repository: https://github.com/sultaniman/pwc.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

PWC

Tests CodeQL

If you need to remember dozens of passwords without having to remember all of them then with password cards you can have it. Each password card is a set of grids with random letters and digits on it has 8 rows which have different colors, columns mapped to different symbols. Everything needed is to remember a combination of a symbol and a color or an index of row, then compose the letters and digits of your passwords from there.

šŸ”Ø Build

$ go build -o pwc

šŸ’¾ Installation

Please download binaries from the latest release or you can also install it using go

$ go get -u github.com/sultaniman/pwc

šŸ–„ļø CLI Use

$ ./pwc classic -h

Example card

ā“ How it works

$ ./pwc explain
Alphabet

               Header symbols: ā– ā–”ā–²ā–³ā—‹ā—ā˜…ā˜‚ā˜€ā˜ā˜¹ā˜ŗā™ ā™£ā™„ā™¦ā™«ā‚¬Ā„Ā£$!?Ā”ĀæāŠ™ā—ā—©ļæ½
                      Numbers: 0123456789
                 Alphanumeric: 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
     Alphanumeric and symbols: 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@#$%!&(MISSING)*<>?€+{}[]()/\

Algorithm

1. Render the first row with shuffled "ā– ā–”ā–²ā–³ā—‹ā—ā˜…ā˜‚ā˜€ā˜ā˜¹ā˜ŗā™ ā™£ā™„ā™¦ā™«ā‚¬Ā„Ā£$!?Ā”ĀæāŠ™ā—ā—©ļæ½",
2. Iterate over the rest of the rows and for each randomly selected letter we shuffle the entire alphabet
    a. If the card should include symbols then
       use the alphanumeric and symbols alphabet for every even character
       and use the alphanumeric alphabet for the odd columns,
    b. If the card should have a digits area then
       use the numeric alphabet for the lower half of the rows 5-8.

Row colors

White #ffffff, Gray #c0c0c0, Red #ffc0c0, Green #c0ffc0, Yellow #ffffc0, Blue #c0c0ff, Magenta #ffc0ff, Cyan #c0ffff

Row colors

HEXRGBColor
#ffffffrgb(255,255,255)$\color{rgb(255,255,255)}{\textsf{White}}$
#c0c0c0rgb(192,192,192)$\color{rgb(192,192,192)}{\textsf{Gray}}$
#ffc0c0rgb(255,192,192)$\color{rgb(255,192,192)}{\textsf{Red}}$
#c0ffc0rgb(192,255,192)$\color{rgb(192,255,192)}{\textsf{Green}}$
#ffffc0rgb(255,255,192)$\color{rgb(255,255,192)}{\textsf{Yellow}}$
#c0c0ffrgb(192,192,255)$\color{rgb(192,192,255)}{\textsf{Blue}}$
#ffc0ffrgb(255,192,255)$\color{rgb(255,192,255)}{\textsf{Magenta}}$
#c0ffffrgb(192,255,255)$\color{rgb(192,255,255)}{\textsf{Cyan}}$

P.S. it was inspired by https://www.passwordcard.org/en.

✨ šŸš€ ✨