#include <password.h>
Inheritance diagram for password::Encrypter:

Public Member Functions | |
| virtual | ~Encrypter () |
| Destructor. | |
| virtual modules::Module * | module ()=0 |
| Returns the name of the module the implementation belongs to. | |
| virtual size_t | length () const =0 |
| Returns the length of encrypted passwords. | |
| virtual bool | encrypt (char const *pass, char *buf, size_t bufsize)=0 |
| Encrypts a password to a buffer. | |
| virtual bool | encrypt (char *buf, size_t size)=0 |
| Encrypts a password in-place. | |
| virtual bool | check (char const *plain, char const *pass)=0 |
| Checks a password. | |
Static Public Attributes | |
| static modules::PSIID const | IID = 0x43f29461 |
| Interface ID. | |
You must override the check(), encrypt() (both versions), length() and module() functions in derived classes.
Modules must provide objects of this interface class through the Module::interface() function.
|
||||||||||||
|
Checks a password against a plaintext representation.
|
|
||||||||||||
|
Encrypts a password in-place. The encryption scheme is up to the implementer.
|
|
||||||||||||||||
|
Encrypts a password to a submitted buffer. The encryption scheme is up to the implementer.
|
|
|
Returns the length of passwords encrypted with this encryption scheme.
|
|
|
Returns the name of the module the implementation belongs to. This is used to easily retrieve the module that generated an encrypted password.
|
1.4.6