Password encryption for login form


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


>>> a == sb


>>> c = CRYPT()('wrong')

>>> c == sb


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

Skills: Cryptography, PHP, Python

See more: use encryption login form, what is encryption algorithm, what is a algorithm in computing, string hash, string compare algorithm, string algorithm, php form maker, logic algorithm, how to make an algorithm, how to make algorithm, hash strings, hash string, form framework, example for algorithm, encryption logic, computing algorithm, algorithm string, algorithm of encryption, algorithm for encryption, algorithm computing, web2py, str, salt, sa password, python strings

Project ID: #4354382

7 freelancers are bidding on average $118 for this job


Lets start

$140 USD in 3 days
(90 Reviews)

hi, sir, see message.

$140 USD in 3 days
(11 Reviews)

Dear sir, I can work in you project right now. I've experience working with php and python. Regards, Sérgio

$139 USD in 3 days
(4 Reviews)

Hi! Please see your inbox.

$80 USD in 3 days
(2 Reviews)

Hi I can implement the password encryption for the login form. I have the time to start right away. Thanks

$50 USD in 1 day
(2 Reviews)

Hello, I have 1.5 years experience with Python. I am reasonably familiar with PHP. I can handle this task with ease. You can pay me only after I've completed the work to your satisfaction. Please contact me.

$140 USD in 4 days
(0 Reviews)

Dear Hiring Manager! I'm interesting in your job. I can do this job.

$140 USD in 3 days
(0 Reviews)

you can pay as per your work progress s-kk-ype us on gunvant.sinh

$190 USD in 3 days
(0 Reviews)