how to display SHA1 values from Database ?

i wanted to display sha1 encrypted values from database so how do we do that?

another things i wanna is, i have a HTTPS website. i have ssl installed… in main index page is login page & that time HTTPS is shown & then as LOGIN , HTTPS GOES cross. i mean its not HTTPS that time? y is that so? i using sessions to display from there database… sessions values are taken from login page… So using sessions i display name n address & etc etc… So can any1 tell me y when i LOGIN, y the page is not HTTPS?

Hi there,

Unfortunately any value that you encrypt with sha1() cannot be unencrypted. However, no matter how many times use encrypt a specific value with sha1() it will always be the same. You just simply encrypt using the function then search the database with that new encrypted value. That’s the only way. There are other encrypt functions that can be reversed though.

Hope this helps.

Sponsor our Newsletter | Privacy Policy | Terms of Service