Re: [SQL] How to store a password encripted in a user definedtable

2007-03-01 Thread Ezequias Rodrigues da Rocha
Just another thing. Why md5 function return a different string from user role of postgresql ? It allways put an md5 string concated with another sequence of string. Why does it occurs ? Ezequias 2007/3/1, Ezequias Rodrigues da Rocha <[EMAIL PROTECTED]>: I know it. Thank you so much. Ezequias

Re: [SQL] How to store a password encripted in a user definedtable

2007-03-01 Thread Ezequias Rodrigues da Rocha
I know it. Thank you so much. Ezequias Grettings from Brazil. 2007/3/1, Bart Degryse <[EMAIL PROTECTED]>: update yourtable set passwordfield = md5(passwordfield) watch out: md5 is irreversable! you can't "un_md5" >>> "Ezequias Rodrigues da Rocha" <[EMAIL PROTECTED]> 2007-03-01 15:08 >>> J

Re: [SQL] How to store a password encripted in a user definedtable

2007-03-01 Thread Bart Degryse
update yourtable set passwordfield = md5(passwordfield) watch out: md5 is irreversable! you can't "un_md5" >>> "Ezequias Rodrigues da Rocha" <[EMAIL PROTECTED]> 2007-03-01 15:08 >>> John, That was what I was looking for for a long time. Now I will change my teller password account to md5. Co

Re: [SQL] How to store a password encripted in a user definedtable

2007-03-01 Thread Bart Degryse
Maybe a little example - create a table with two columns: username and password (eg. tbl_users) - in a secure environment (thus not over the internet) insert records into the table INSERT INTO tbl_users(username, password) VALUES ('John', md5('johnspassword')) - make a website with a login page