dev/qt/ PgenPasswordGenerator


This does the same thing as https://sec.allsup.co/jj?hello and the same as

$ echo -n $Input$Secret | sha256sum | cut -c1-64 | xxd -r -p | base64 | tr '/+' '#@' | cut -c1-16

but is written in Qt. This requires the crypto classes.

Console

First we do it for the console to check we have the crypto stuff working correctly. (Output can be verified against the web or console version – here I am using 'boing' and 'snarf' as inputs – 'MrFlibble' is the input for the md5 version – this is a quick way of seeing if you've typed the secret in correctly, and as for why 'MrFlibble', it is a totally insane puppet from Red Dwarf.)

Source is at PgenPasswordGeneratorConsoleSource.

Simple Gui version 1

We won't bother with the schema and length here, just hard code the defaults.

So we need two input text boxes, one for the secret (with starred out text), and one for the input. Then there are three outputs: main output, and outputs from md5 and sha for the test string "MrFlibble".

See PgenPasswordGeneratorVersion1.