Multi-platform console/gui passphrase generator
Command Line Interface handling
Start interactive prompt, generating and showing the passprase(s)
Parameters : |
|
---|
Length of output passphrase, default is 30
Boolean. Prompt for password twice
Create and return secure hash of message
A secure hash/message digest formed by hashing the message with the sha512 algorithm, encoding this hash with base64 and stripping it down to the first length characters.
Parameters : |
|
---|---|
Return : |
|
Creat secure hashes of a dict of identifier:length and a password
A secure hash/message digest formed by hashing the message with the sha512 algorithm, encoding this hash with base64 and stripping it down to the first length characters.
Parameters : |
|
---|---|
Return : |
|
Houses all GUI related objects and interactions
Default font (Verdana)
Default fontsize (10 pt.)
Get font and fontsize, optionally differ from default fontsize
Parameters : |
|
---|---|
Return : |
|
Check user input
Warn when user input is insufficient or wrong. Create digest and display the generated password if user input is OK.
Prototype for warning user
- soft warnings display a message in the passwordout field
- hard warnings do the same and also display a messagebox
Parameters : |
|
---|
Parsing of labelfiles and writing to labelfiles
Name of hash to use by default
Default passphrase length
Boolean value set on init
String of labelfile location, set on init
Labelfile contents with comments and blank lines removed
File object, set on init if labelfile is found
Dict of {label: length}