Jump to content

md5 and base64 encoding


grenouille

Recommended Posts

hi,

i am using an open source (java) filemanager on one of my websites. user data is stored in an xml-file.
when a visitor uses the filemanager itself to register, the password is first md5 encrypted and after that base64 encoded (according to the developer).
now i want to write my own register-form for this filemanager. so i take the password value, md5() and base64_encode() it, but it gives NOT the saùme result as when the filemanager itself encrypts.

f.i password= 19721972  ==> filemanager result = NREVYMjLF45+vX9VM9KAxg==
but : $password=19721972, md5($password) ==> 35111560c8cb178e7ebd7f5533d280c6
  and then base64_encode($password) ==> MzUxMTE1NjBjOGNiMTc4ZTdlYmQ3ZjU1MzNkMjgwYzY=

anyone any idea what may cause this difference? the developer told me he used the Java MessageDigest class
to md5 encrypt.

If you know the answer, please do not get to technical (if possible)  :)

thnx in advance.


Link to comment
https://forums.phpfreaks.com/topic/23418-md5-and-base64-encoding/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.