Forum

Password encryption
 
Notifications
Clear all

Password encryption

4 Posts
2 Users
0 Reactions
6,369 Views
(@berlo56)
Posts: 15
Active Member
Topic starter
 
[#1848]

Hi!

I've a little problem.
I have an some accounts with md5 encryption and SHA-256 encryption.
I need to compare password (for an Android application) but I realize that SHA-256 encryption is not the same between JAVA conversion/online converter (for example) and conversion in the tool.

For example the password "12345" on web converter and JAVA gives:
"5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5"

And with projeqtor it gives:
"ae98a6b414e54bd710fb062c3a997a55a2826e17588124954d95a2e9ba1325a3"

Do you have an idea of the origin of this problem ?


 
Posted : 16 Jun 2014 19H07
(@babynus)
Posts: 14952
Member Admin
 

Hashing method also uses a salt (specific for each user) ...

Sure SHA-256 should give same result, whatever the language.


 
Posted : 16 Jun 2014 19H43
(@berlo56)
Posts: 15
Active Member
Topic starter
 

Thanks for your anwer.

Is it possible to convert password only in MD5 when I create a new resource?


 
Posted : 17 Jun 2014 16H10
(@babynus)
Posts: 14952
Member Admin
 

No.
Default is now SHA, because it is much more secure.
MD5 is just kept to be compatible with previous versions.


 
Posted : 17 Jun 2014 16H57
Share:

Scroll to Top