Proph

AES 256 Autoit vs PHP?

7 posts in this topic

#1 ·  Posted (edited)

I am currently encrypting data in my code using AES256 with a passkey.  Example passkey: "123456"

It works fine in my autoit code.  But my php developer insists the passkey for AES256 must be 32 bytes.  So I am assuming that even though my passkey in autoit is not currently 32 bytes it is somehow converting my passkey into a 32 byte passkey?  If that is true... how can I find out the 32 byte passkey that my current code is using... so that I can give that to my php developer?

Thanks!

 

Edited by Proph

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

My web developer is having a hard time getting AES 256 encryption to output the exact same data as Autoit does with AES encryption (and using the same passkey).

Is there someone here that has experience with this? Can you give me some php code that will output the same AES 256 Encryption and be able to decrypt data that was Encrypted by Autoit AES 256 as well?  I'm sure I cannot be the only one who is having this problem. I know someone else here must have defeated this. ;)  Is this an issue with Autoit's method?  Or is it the default methods in php that are incorrect?  I'm new to AES encryption.  So I'd like to understand why php and autoit don't seem to be outputting the same data.

Edited by Proph

Share this post


Link to post
Share on other sites

Proph,

Just the one thread at a time please.

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

Sorry.  Wasn't sure If I should create 2 threads or not.  Since they are 2 different questions. ;-)  

Thanks for combining them.

Share this post


Link to post
Share on other sites

 

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Thanks for the reply Deye, but I have tried that example.  It does not seem to work for me.  It Encrypts the data... but it never does the decryption on the php side.  It just returns blank.  

Edited by Proph

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now