Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • September 26, 2016, 03:45:46 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: AHK_L / PHP Encryption  (Read 1899 times)

justice

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,898
    • View Profile
    • Donate to Member
AHK_L / PHP Encryption
« on: December 20, 2011, 06:11:42 AM »
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, 07:34:02 AM by justice »

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,027
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: AHK_L / PHP Encryption
« Reply #1 on: December 20, 2011, 09:48:43 AM »
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