qwert Posted February 6, 2019 Share Posted February 6, 2019 I'm working with Au3 encryption calls. I have no trouble encrypting strings and then decrypting them to get back to the starting point. Things work as described and I get a hex result from AES 256 calls. But when I use the same string and key in one of the online encryption tools, it shows quite a different result ... fewer characters ... and in extended ASCII or something. I'm drawing a blank as to what's at the root of the differences. I've attached an example, below. My Au3 result is at the top. I'm hoping that someone who's versed in encryption can explain this situation. I've been thinking that AES256 was "universal". Thanks in advance for any help. Link to comment Share on other sites More sharing options...
spudw2k Posted February 6, 2019 Share Posted February 6, 2019 The second output appears to be encoded in Base64, whereas the first one is hexadecimal. Can you provide some autoit code and the online source you are using to generate the outputs so we can help compare more in-depth? Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
qwert Posted February 6, 2019 Author Share Posted February 6, 2019 Thanks for your response. Here's the simple encryption statement I'm using: $encrypted = _Crypt_EncryptData($sData, $key, $CALG_AES_256) And here's a link to the site for comparison: link I think I ran my comparison with an 8-character key ... on a $sData of about 60 characters. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now