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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.