Code: Select all
$query= "SELECT AES_ENCRYPT( 'hello', SecretKey ) as mykey
FROM `aorsdklicense` WHERE devid='developertestdevid'";
$result= mysql_query($query);
$row = mysql_fetch_assoc($result);
$encstring = $row['mykey'];
There is another application which is giving AES encrption of the same string wiht the same secret key. But its unable to produce the same result.
Here is the comparison:
0ce74a52dd982363b1bba19c8b67cca4 =>68936403402915e2f95ce9430640c268
The one on the left is the encryption from my system and the one on the right is from the other system.
Could not make out anything of it. If it triggers anything to anyone.. please let me know