AES128 what is that?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
kreoton
Forum Commoner
Posts: 42
Joined: Fri Mar 03, 2006 7:27 pm

AES128 what is that?

Post 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.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

User avatar
kreoton
Forum Commoner
Posts: 42
Joined: Fri Mar 03, 2006 7:27 pm

Post 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?
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post 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.
Post Reply