# Ezcrypto HELP!

**URL:** <https://www.ruby-forum.com/t/ezcrypto-help/94152>\
**Category:** Rails\
**Created:** [April 23, 2006, 4:06am UTC](https://www.ruby-forum.com/t/ezcrypto-help/94152 "2006-04-23T04:06:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mshah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ee7513/32.png) [@mshah](https://www.ruby-forum.com/u/mshah)\
**Post date:** [April 23, 2006, 4:06am UTC](https://www.ruby-forum.com/t/ezcrypto-help/94152/1 "2006-04-23T04:06:41Z")

</div>

I’m using the ezcrypto library for aes encryption, but i’m running into  
some  
weird cases that i cant seem to figure out.

What i’m doing is trying to encrypt someting in php using standard AES  
128.  
I’m taking the output from php and trying to decrypt it with ruby using  
ezcrypto.

This seems to work for a lot of cases, but it does not work for some  
others. Any ideas on why this happening? I would think that it either  
works or it doesnt work on all cases. I’ve been trying to see if there  
is a  
pattern amongst the cases that dont work, but there’s none that i can  
tell  
(short of doing binary bit-by-bit comparisons).

PLEASE HELP!!!

---

<div class="post-metadata">

**Author:** ![mshah](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ee7513/32.png) [@mshah](https://www.ruby-forum.com/u/mshah)\
**Post date:** [April 23, 2006, 3:30pm UTC](https://www.ruby-forum.com/t/ezcrypto-help/94152/2 "2006-04-23T15:30:54Z")

</div>

Manish S. wrote:

> is a pattern amongst the cases that dont work, but there’s none that i  
> can tell (short of doing binary bit-by-bit comparisons).
> 
> PLEASE HELP!!!  
> Have you got a failing test case we could look at?
