Jump to content
Sign in to follow this  
403forbidden

Native AutoIt Code AES Encryption UDF

Recommended Posts

403forbidden

I have made a UDF for encryption of strings using AES. It is coded completely in AutoIt code, so you can see how it works and learn more about AES by looking at it. You can find the code and a lengthier description by going to http://403forbidden.dyndns.org/?page_id=128

Edited by 403forbidden

Share this post


Link to post
Share on other sites
Skrip

Looks like some very nice code. I haven't tested yet, but will do so later today.


[left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left]

Share this post


Link to post
Share on other sites
403forbidden

Looks like some very nice code. I haven't tested yet, but will do so later today.

Let me know what you think of it when you do.

Share this post


Link to post
Share on other sites
iHonda

Ok I must be a noob but I've got no idea of how to use this. I get what its supposed to do but uhh yeah how would i use this?


A great place to start Autoit 1-2-3

Share this post


Link to post
Share on other sites
iHonda

ah ok ill take a look at that any ideas when that beta will be out?


A great place to start Autoit 1-2-3

Share this post


Link to post
Share on other sites
Zedna

ah ok ill take a look at that any ideas when that beta will be out?

There is a HUGE progress on fixing tickets on BugTrac so I think it will may be soon.

Here is link to mentioned ticket on the Trac

http://www.autoitscript.com/trac/autoit/ticket/1157#comment:1

Edited by Zedna

Share this post


Link to post
Share on other sites
403forbidden

Ok I must be a noob but I've got no idea of how to use this. I get what its supposed to do but uhh yeah how would i use this?

It's just like a normal function.

1. Download the AutoIt script.

2. Include the file in the script you want to use my script in using the #include keyword.

3. Use the function like any other. The functions name is _AESEncrypt.

Share this post


Link to post
Share on other sites
spudw2k
SkinnyWhiteGuy

Not to toot my own horn, but I did the Rijndael encryption algorithm (which is what AES is) in AutoIt, with IV's and everything here.

Share this post


Link to post
Share on other sites
spudw2k

Not to toot my own horn, but I did the Rijndael encryption algorithm (which is what AES is) in AutoIt, with IV's and everything here.

Sweet, thanks man. I was using the MEMDll version and I needed proper code documentation instead of ASM magic.

I am having difficulties using the IVs though. I tried simply using a SHA1 hash of a random number....but my output is the same.

edit:

I didn't realize IVs didn't work with ECB mode. my bad. thanks again

Edited by spudw2k

Share this post


Link to post
Share on other sites
SkinnyWhiteGuy

What mode are you using? The IV's are only applied in modes 1-4.

Share this post


Link to post
Share on other sites
spudw2k

What mode are you using? The IV's are only applied in modes 1-4.

edit:

I still can't get the IV work properly. Can you show me a working example? Why do I need to supply the IV to the Decipher? The ASM version doesn't require IVs for Decryption.

edit:

moved discussion to SkinnyGuys topic.

Edited by spudw2k

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.