Jump to content
Sign in to follow this  
qwert

Seeking to understand encryption results

Recommended Posts

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.

5c5a371ef2a8f_EncryptionRes.thumb.png.96927063a4caa1d0dcf4757e975fa9a3.png

 

 

Share this post


Link to post
Share on other sites

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?


Share this post


Link to post
Share on other sites

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.

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...