# Md5

**URL:** <https://www.ruby-forum.com/t/md5/120036>\
**Category:** Rails\
**Created:** [November 13, 2007, 7:27am UTC](https://www.ruby-forum.com/t/md5/120036 "2007-11-13T07:27:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jon\_Griffin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8baadc/32.png) [@Jon\_Griffin](https://www.ruby-forum.com/u/Jon_Griffin)\
**Post date:** [November 13, 2007, 7:27am UTC](https://www.ruby-forum.com/t/md5/120036/1 "2007-11-13T07:27:06Z")

</div>

I am converting 20,000+ users from mybb to a new rails app.  
It appears that ruby m5 crypts different than php md5.

Is this possible? I thought the algorithm should be the same for any  
platform.

---

<div class="post-metadata">

**Author:** ![Jon\_Griffin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8baadc/32.png) [@Jon\_Griffin](https://www.ruby-forum.com/u/Jon_Griffin)\
**Post date:** [November 13, 2007, 7:45am UTC](https://www.ruby-forum.com/t/md5/120036/2 "2007-11-13T07:45:48Z")

</div>

Jon Griffin wrote:

> I am converting 20,000+ users from mybb to a new rails app.  
> It appears that ruby m5 crypts different than php md5.
> 
> Is this possible? I thought the algorithm should be the same for any  
> platform.

I expect it should be the same. Are you sure that mybb only does an  
MD5. I was looking at YABB a long time back, and I seem to recollect  
that it carries out 2 operations on the password. IIRC, it was Base64  
and MD5 or something like that.

Hope this helps.

Cheers,  
Mohit.  
11/13/2007 | 2:44 PM.

---

<div class="post-metadata">

**Author:** ![Jon\_Griffin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8baadc/32.png) [@Jon\_Griffin](https://www.ruby-forum.com/u/Jon_Griffin)\
**Post date:** [November 13, 2007, 8:07am UTC](https://www.ruby-forum.com/t/md5/120036/3 "2007-11-13T08:07:27Z")

</div>

Yes that was it, they actually encrypt the password and salt 2x with  
md5. I don’t read php so it took me a while to figure out.  
Thanks
