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!
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
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.
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.