Author Topic

Bruce Morrison

Thursday 06 March 2008 12:06:35 am

Comment49190

Hi Piotrek

If you can decrypt them and the code to do so is on the server you may as well store them in plain text anyway. It's more encoding then encryption.

If this doesn't matter I guess you could use ROT13 or something similar. http://en.wikipedia.org/wiki/ROT13

There isn't anything built into eZ that would do this. The existing built-in methods are:

    /// MD5 of password
    const PASSWORD_HASH_MD5_PASSWORD = 1;
    /// MD5 of user and password
    const PASSWORD_HASH_MD5_USER = 2;
    /// MD5 of site, user and password
    const PASSWORD_HASH_MD5_SITE = 3;
    /// Legacy support for mysql hashed passwords
    const PASSWORD_HASH_MYSQL = 4;
    /// Passwords in plaintext, should not be used for real sites
    const PASSWORD_HASH_PLAINTEXT = 5;
    // Crypted passwords
    const PASSWORD_HASH_CRYPT = 6;

See also:
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/configuration_files/site_ini/usersettings/hashtype

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish