DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: AHK_L / PHP Encryption  (Read 5,707 times)

justice

  • Solve issues simply.
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,898
    • Participated in NANY Challenge Four Times
    • Cody Award
    • Coding Snacks
    • DJ Badge - DJ
AHK_L / PHP Encryption
« on: December 20, 2011, 12:11 PM »
I'm trying to encrypt a string POSTed to a webpage and decrypt it with a PHP script.  Has anyone done this with AHK and can share the code, as the pointers on the AHK forums I have found so far create hashes that are incompatible with PHP, and therefore cannot be decrypted unless I reiplement the encryption/decryption in one of the languages.

Any algorithm will be better than nothing. :) I must have tried over a dozen implementations but any that use Microsoft's cryptographic libraries produce different hashes than PHP implementations.
« Last Edit: December 20, 2011, 01:34 PM by justice »

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: AHK_L / PHP Encryption
« Reply #1 on: December 20, 2011, 03:48 PM »
I must have tried over a dozen implementations but any that use Microsoft's cryptographic libraries produce different hashes than PHP implementations.
Then you're doing something wrong - standards are standards.

What are you trying to encrypt, how are you trying to encrypt it, and... WHY? Doing something like this with symmetric encryption is likely going to be pretty useless.
- carpe noctem

Original address: https://www.donationcoder.com/forum/index.php?topic=29358.0