Sezer Toker
Sezer Toker

Reputation: 21

SHA1 does not match

I am using SMF. In SMF passwords saved in mysql like:

sha1(usernamepassword);

Some of hashes works fine. But other hashes which includes special chars like "öüşığ" and space etc. does not match.

For example "aksak temüraga" should be converted to sha1 as "4b4eb0eed79356eb56eb9058e6dea20d71e48e3c" but it is converted to sha1 as "c4aa8328bf5ec76cfc0416fd7ec40f8dea7f3d62"

Upvotes: 1

Views: 807

Answers (1)

Whiteulver
Whiteulver

Reputation: 838

Since you are trying to create an external login to SMF forum, then you have to stay with hashing provided by SMF.

About your problem, you should take a look at Sources\LogInOut.php file of SMF installation, to check how SMF creates the login.

Then you can use the same technique for your external login.

Upvotes: 1

Related Questions