eVaf
|
Password generator interface. More...
#include </var/tmp/work/evaf/src/apps/PswGen/Generator/igenerator.h>
Public Types | |
enum | { ALPHANUMERIC = 0x01 } |
Flags for the password generator. More... | |
Public Member Functions | |
virtual QString | generatePassword (QString const &name, QString const &masterPassword, int length, uint flags=0) const =0 |
Generates a strong password. More... | |
virtual int | maxLength () const =0 |
Returns the maximum length of generated passwords. More... | |
Password generator interface.
This interface is used to generate strong passwords.
Definition at line 34 of file igenerator.h.
anonymous enum |
Flags for the password generator.
Enumerator | |
---|---|
ALPHANUMERIC |
Generated password contains only alphanumeric characters. |
Definition at line 40 of file igenerator.h.
|
pure virtual |
Generates a strong password.
name | Name of the password |
masterPassword | Master password |
length | Length of the password (if zero, then uses the max length) |
flags | Flags for the generator |
This function generates a strong password using the name and the master password string as inputs. Calling this function with the same input always returns the same generated password.
The length of the password is specified with the length argument. However, the generated password is never longer than possible with the particular cryptographic method.
Optional flags can be used to fine-tune the generator.
|
pure virtual |
Returns the maximum length of generated passwords.
This function returns the maximum length of generated passwords that is possible with the cryptographic method used by the module implementing this interface.