twonds / ejabberd_couchdb

Couchdb backend for ejabberd
34 stars 6 forks source link

Password in Upper - Fail #1

Closed renatovico closed 14 years ago

renatovico commented 14 years ago

Hi,

With use password in UpperCase : "A94A8FE5CCB19BA61C4C0873D391E987982FBBD3" the get password fail, but change the ASCII words to lower, work.

And the suggestion, the code of`s check, is duplicate,

I'm noob in erlang, because this don't fork this project.

twonds commented 14 years ago

Hmm, I can not replicate this problem. Are there some more details you can provide? You are storing your password as uppercase and sending the exact password to ejabberd?

renatovico commented 14 years ago

Ok, fine

The password is : test I`m storage in couch A94A8FE5CCB19BA61C4C0873D391E987982FBBD3

The problem is on sha1 strict the generate: a94a8fe5ccb19ba61c4c0873d391e987982fbbd3 , but some implemations for sha1 generate in upper.

After this post, im recreate the hash in other digests and work fine, thank you for attention =)

twonds commented 14 years ago

ah, ok.