Password encryption for login form

CLOSED
Bids
8
Avg Bid (USD)
$127
Project Budget (USD)
$30 - $250

Project Description:
I Need Password encryption for login Form , i used web2py before and this was a built in function , i asked the framework maker about how can i implement it and he answered this :

The logic is very complex because it needs to deal with many options and not-break backward compatibility.

Normally an encrypted password looks like

algorithm$salt$hash algorithm$$hash (no salt) hash (legacy)

the hash is computing using the algorithm, the salt, and optionally a user provided key. The key is unique. The salt is different for each password.

Every time you call CRYPT()('password') you get a LazyCrypt object. This object can be serialized into a string. The string you get is always different because it contains a random salt. You cannot compare two of those strings because you always get false, even for the same password. Yet you can compare a LazyObject with a string and the lazy object will use the same algorithm and the same salt from the string to compute the hash and compare it with the hash in the string. Example:

>>> a = CRYPT()('password')
>>> b = CRYPT()('password')
>>> sa = str(a)
>>> sb = str(b)
>>> sa == sb
False
>>> a == sb
True
>>> c = CRYPT()('wrong')
>>> c == sb
False

attached is the class for the function to make that in python , what i wont is to implement this in php ,

Skills required:
Cryptography, PHP, Python
Additional Files: file.py
About the employer:
Verified
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.


$ 140
in 3 days
$ 140
in 3 days
Hire matematico
$ 139
in 3 days
Hire GeorgeKazi
$ 80
in 3 days
Hire CheapGoodWork
$ 50
in 1 days
Hire nikmmy
$ 140
in 4 days
$ 140
in 3 days
Hire rockmarkvok222
$ 190
in 3 days