eVaf
eVaf::PswGen::iGenerator Struct Referenceabstract

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...
 

Detailed Description

Password generator interface.

This interface is used to generate strong passwords.

Definition at line 34 of file igenerator.h.

Member Enumeration Documentation

anonymous enum

Flags for the password generator.

Enumerator
ALPHANUMERIC 

Generated password contains only alphanumeric characters.

Definition at line 40 of file igenerator.h.

Member Function Documentation

virtual QString eVaf::PswGen::iGenerator::generatePassword ( QString const &  name,
QString const &  masterPassword,
int  length,
uint  flags = 0 
) const
pure virtual

Generates a strong password.

Parameters
nameName of the password
masterPasswordMaster password
lengthLength of the password (if zero, then uses the max length)
flagsFlags for the generator
Returns
Generated password

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.

virtual int eVaf::PswGen::iGenerator::maxLength ( ) const
pure virtual

Returns the maximum length of generated passwords.

Returns
Maximum length

This function returns the maximum length of generated passwords that is possible with the cryptographic method used by the module implementing this interface.


The documentation for this struct was generated from the following file: