Encrypt entire $_POST array

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TheServant
    Recognized Expert Top Contributor
    • Feb 2008
    • 1168

    Encrypt entire $_POST array

    Hi all,
    Does anyone know if you can encrypt an array (like $_POST with the AES algorithm) and decrypt it back to a functional array?
    I have a C# application sending a $_POST array to a PHP script which works fine, but I was thinking it'd be simpler code to encrypt the entire array while in transit instead of each key/val.
    Kinda like HTTPS but using my own encryption.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    you have to serialise the array first (and unserialise after decryption).

    Comment

    • TheServant
      Recognized Expert Top Contributor
      • Feb 2008
      • 1168

      #3
      Great idea! Cheers Dorm.

      Comment

      Working...