Page 1 of 1

AES128 what is that?

Posted: Fri Jan 05, 2007 1:36 am
by kreoton
i making payment system, in documentations is wrote how to encrypt data, but i a little bit confused, because i don't know what is aes128 and how to use it :(

Code: Select all

Parameter ‘input’ is a BASE64 encoded byte array that consists of two parts:
- First 128 bytes are AES128 symmetric key (aeskey1) encrypted according to RSA 1.5
algorithm using public key of XXXXX Web Service Certificate. Encryption ensures that
only XXXXX Web Service can decrypt XML document.
- The rest is XML document encrypted according to AES128 algorithm using ‘aeskey1’.
‘easkey1’ must be randomly generated by the Client’s host.

Posted: Fri Jan 05, 2007 1:40 am
by Kieran Huggins

Posted: Fri Jan 05, 2007 2:29 am
by kreoton
i know how to use google :D and it is seems that there is class only for ASP programming. Maybe there is some way to use it with PHP?

Posted: Fri Jan 05, 2007 3:09 am
by Kieran Huggins
http://www.php.net/results.php?q=aes&p=manual&l=en

returns:

http://www.php.net/manual/en/function.o ... ncrypt.php
- and -
http://www.php.net/manual/en/ref.mcrypt.php

That seems to be about it in PHP. Not promising :-(

You could always get a unix or windows command line version and use shell_exec()...

Or, if you're feeling spunky you could write your own! There are javascript and C implementations out there, PHP could do it as well. The wikipedia article links to such scripts.