Adventure,PHP,framework,page controller,front controller,pattern,object orientated design,software,development,reusability,uml,tutorial,benchmark,brilliant performance,

Search:    
Downloads  |  SVN!  |  Roadmap  |  Forum!  |  Bugtracking  |  Guestbook  |  Backlinks!  |  References!  |  Sitemap  |  Impress  
 
Deutsch | English Adventure PHP Framework  Bookmark @ Technorati Bookmark @ del.icio.us Bookmark @ Mr. Wong Bookmark @ Simpy Bookmark @ Google Bookmark @ Digg.com Adventure PHP Framework Print page 028-Class-reference-table-stringencryptor

Class reference table - stringEncryptor

Rank article:
This article has not yet been ranked. Vote this article first of all!
The stringEncryptor provides functions to create sting hashes. Merely this component can be used as a device to "encrypt" password stings. After adding a
  import('tools::string','stringEncryptor'); 
to the program's code, tha component can be created by using the following code part:
  $sE = &$this->__getServiceObject('tools::string','stringEncryptor');
  echo 
$sE->getPasswordHash('=MEiN&Pa$$W0rt='); 
To create the hash correctly the class needs the configuration file
  {ENVIRONMENT}_encryption.ini
to be stored under the namespace
  /config/tools/string/{CONTEXT}
This file defines the password salt for the creation of the hash value by use of the PHP function crypt(). In common the config file contains the following lines:
[Standard]
PasswortSalt = ""

Note: Further information concerning the definition of password salts can be found on http://de.php.net/manual/de/function.crypt.php.


Comments

Do you want to add a comment to the article above, or do you want to post additional hints? So please click here. Comments already posted can be found below.


There are no comments belonging to this article.


Powered by WebRing.