21278 Posts in 5728 Topics by 2599 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 2292 Views |
-
Manually create sha1 password/salt

15 May 2009 at 6:33am
The DB contains these fields:
Password
s2z1w96s2804og888w4w48o8koogsggSalt
45hjh3lh63cw8s84o8gso800c4skcsco0csoc08PasswordEncryption
sha1I want to manually change or add a password. But first I need to know how to create the sha1 password / salt
Presuming the password is "password" how can I (with PHP) create the encrypted password / salt data?
-
Re: Manually create sha1 password/salt

21 May 2009 at 5:06am
How can I change the password using SQL?
UPDATE `MemberPassword` SET `Password` = 'svhznj3i668w448owkwo8s0k4oo4s0d', `PasswordEncryption` = 'sha1', `Salt` = '1dsfj8i4swo0cowocgk88oo8woo0w4g80swswwk' WHERE `ID` = 1 LIMIT 1 ;
UPDATE `Member` SET `Password` = 'svhznj3i668w448owkwo8s0k4oo4s0d', `PasswordEncryption` = 'sha1', `Salt` = '1dsfj8i4swo0cowocgk88oo8woo0w4g80swswwk' WHERE `ID` = 1 LIMIT 1 ; -
Re: Manually create sha1 password/salt

13 January 2010 at 6:23pm
I would also like to know how to manually generate the salt as I am importing a whole bunce of users from a legacy application and need to do this also.
Any help appreciated.
| 2292 Views | ||
|
Page:
1
|
Go to Top |


