Functions | |
int | hexbyt (const char c) |
const QString | crypt (const KUrl &url) |
const QString | decrypt (const QString &pass) |
const QString Encryption::crypt | ( | const KUrl & | url | ) |
Encrypts the the password in the given url and returns it. The encryption algorithm uses host and user name to crypt the password.
url | the url with password, host and user name |
Definition at line 32 of file encryption.cpp.
const QString Encryption::decrypt | ( | const QString & | pass | ) |
Decrypts the given encrypted password.
pass | encrypted password |
Definition at line 78 of file encryption.cpp.
int Encryption::hexbyt | ( | const char | c | ) |
Transforms the given hex numeric character to integer. For example: a given '2' will transformed to 2; 'B' to 12.
c | character to transform [0..9, 'A'..'F']; no lower case letters |
Definition at line 24 of file encryption.cpp.