[web2py] Re: web2py password encryption/decryption

2014-06-26 Thread farmy zdrowia
Massimo, Your code hash password, but it is not recognized by Joomla. :) Anyway I have got this class in py from phpass fremwork web page. It works! Now CUSTOMIZE CRYPT is the last effort. hash_password and check_password shell be used. import os import time import hashlib import crypt

[web2py] Re: web2py password encryption/decryption

2014-06-24 Thread farmy zdrowia
THX a lot Massimo, it is very much appreciated. I'll check this ASAP. Be patient please. On Monday, June 23, 2014 11:21:42 AM UTC+2, Massimo Di Pierro wrote: > > Hello Farmy, > > The code you posted helps and this examples the PHP algorithm: > http://pythonhosted.org/passlib/lib/passlib.hash.p

[web2py] Re: web2py password encryption/decryption

2014-06-23 Thread Massimo Di Pierro
Hello Farmy, The code you posted helps and this examples the PHP algorithm: http://pythonhosted.org/passlib/lib/passlib.hash.phpass.html I recorded this in Python: import random, hashlib class PHPHash(object): CHARS = '0123456789abcdefghijklmoqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' def __

[web2py] Re: web2py password encryption/decryption

2014-06-22 Thread farmy zdrowia
I did kind of investigation by myself. I can see CB uses new Joomla "Portable PHP password hashing framework" functionality to crypt password. I noticed CB run on joomla 3.2.1, while my other site is on Joomla 2 Anyway at the end of pasword cryption chain there is a function hashPassword and v

[web2py] Re: web2py password encryption/decryption

2014-06-22 Thread farmy zdrowia
I'm so sorry for late answer. I was out of office/home for a while. Busy time this 2014 I can see :). Anyway, Massimo is absolutely right. I have two joomla sites. One "Joomla _user original" and indeed passwords are according to standard described in link. Example (c563e965be1369f9030863daca

[web2py] Re: web2py password encryption/decryption

2014-05-30 Thread Massimo Di Pierro
We can help you read and validate Joomla passwords (you need a custom validator instead of CRYPT) but we do not know how: $P$DryHu7D3LgdPOK//FPvuVMcMR13HgU1 was generated. What algorithm? It does not appear to be compatible with what the docs say: http://stackoverflow.com/questions/10428126/jooml