Encryption Namespace Reference

Provides functions to crypt and decrypt a password. More...


Functions

int hexbyt (const char c)
const QString crypt (const KUrl &url)
const QString decrypt (const QString &pass)


Detailed Description

Provides functions to crypt and decrypt a password.

Function Documentation

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.

Parameters:
url the url with password, host and user name
Returns:
encrypted password

Definition at line 32 of file encryption.cpp.

const QString Encryption::decrypt ( const QString &  pass  ) 

Decrypts the given encrypted password.

Parameters:
pass encrypted password
Returns:
decrypted 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.

Parameters:
c character to transform [0..9, 'A'..'F']; no lower case letters
Returns:
integer value of the given character

Definition at line 24 of file encryption.cpp.


Generated on Tue May 18 19:43:53 2010 for KShowmail by  doxygen 1.5.6