tags:

views:

140

answers:

2

i fetched such problem in my project

how can we decrypting 128 bit AES encrypted text in php with cipher mode ECB and padding mode PKCS7

A: 

You can probably use mcrypt.

But may I ask why you're encrypting with ECB mode at all? Remember the known problems with that?

Joey
yeah i know but its desire of my client
praveen
thanks for take interest in my question
praveen
A: 
mcrypt_decrypt('rijndael-128', $key, $data, 'ecb');

You will have to manually remove the padding.

BlueRaja - Danny Pflughoeft