Re: [PHP] PHP to decode AES

2012-10-18 Thread Rick Dwyer
On Oct 18, 2012, at 4:39 PM, Adam Richardson wrote: > On Thu, Oct 18, 2012 at 12:06 PM, Rick Dwyer wrote: >> Hello all. >> >> Has anyone ever tried to decode a JAVA AES/CBC encrypted string with PHP >> before? >> >> I found a tutorial online with the following code to use as starting point,

Re: [PHP] PHP to decode AES

2012-10-18 Thread Adam Richardson
On Thu, Oct 18, 2012 at 12:06 PM, Rick Dwyer wrote: > Hello all. > > Has anyone ever tried to decode a JAVA AES/CBC encrypted string with PHP > before? > > I found a tutorial online with the following code to use as starting point, > but it fails to return anything readable: > > $code ='Hello Wo

Re: [PHP] PHP to decode AES

2012-10-18 Thread Matijn Woudt
Op 18 okt. 2012 21:50 schreef "Rick Dwyer" het volgende: > > On Oct 18, 2012, at 2:38 PM, Matijn Woudt wrote: > > > On Thu, Oct 18, 2012 at 7:19 PM, Rick Dwyer wrote: > >> To correct what I posted below, $code that I'm passing to my function is encrypted… not plain text: > >> > >> ch7WvaSrCiHLst

Re: [PHP] PHP to decode AES

2012-10-18 Thread Rick Dwyer
On Oct 18, 2012, at 2:38 PM, Matijn Woudt wrote: > On Thu, Oct 18, 2012 at 7:19 PM, Rick Dwyer wrote: >> To correct what I posted below, $code that I'm passing to my function is >> encrypted… not plain text: >> >> ch7WvaSrCiHLstNeNUp5SkPfPgw0Z8vrNPJT+9vU7jN/C >> >> --Rick >> >> >> On Oct 18

Re: [PHP] PHP to decode AES

2012-10-18 Thread Matijn Woudt
On Thu, Oct 18, 2012 at 7:19 PM, Rick Dwyer wrote: > To correct what I posted below, $code that I'm passing to my function is > encrypted… not plain text: > > ch7WvaSrCiHLstNeNUp5SkPfPgw0Z8vrNPJT+9vU7jN/C > > --Rick > > > On Oct 18, 2012, at 12:06 PM, Rick Dwyer wrote: > >> Hello all. >> >> Has

Re: [PHP] PHP to decode AES

2012-10-18 Thread Rick Dwyer
To correct what I posted below, $code that I'm passing to my function is encrypted… not plain text: ch7WvaSrCiHLstNeNUp5SkPfPgw0Z8vrNPJT+9vU7jN/C --Rick On Oct 18, 2012, at 12:06 PM, Rick Dwyer wrote: > Hello all. > > Has anyone ever tried to decode a JAVA AES/CBC encrypted string with PH

[PHP] PHP to decode AES

2012-10-18 Thread Rick Dwyer
Hello all. Has anyone ever tried to decode a JAVA AES/CBC encrypted string with PHP before? I found a tutorial online with the following code to use as starting point, but it fails to return anything readable: $code ='Hello World'; $key = 'my key'; function decrypt($code, $key) { $key = hex2bi