Anyone want to help with "AES" Encryption - code n

Everything else that doesn't fall into one of the other PB categories.
Straker
Enthusiast
Enthusiast
Posts: 701
Joined: Wed Apr 13, 2005 10:45 pm
Location: Idaho, USA

Anyone want to help with "AES" Encryption - code n

Post by Straker »

Here's the deal. I NEED AES! I have been using sec's AES lib in 3.94 and have been unable to move most of my stuff to 4.0 because of this. And sec "lost" the source code to the lib so it cant be converted to 4.0. (Is it just me or does this seem to happen quite a bit? I mean, it seems like the people who release libs have a special propensity to lose the source.)

I have found source code for AES in PowerBasic (mostly ASM) and Visual Basic, however I don't know either of them, which is why I am asking for help. The PowerBasic page is pbcrypto.com and I found it because of another thread in this forum.

I am willing to do a lot of the grunt work, like pre-conversion, but I need help with the compilation errors and the obvious conversion of commands which I don't understand.

I will release the source code on this forum, where hopefully it can be adapted on other platforms as well.

But I can't do it alone, so I am asking for help. If you are interested and have expertise in PowerBasic, ASM, or Visual Basic. Please reply.

If this works, then maybe we can work on BlowFish as well.

Thanks for any interest.

[EDIT]My title got cut off, but I said "code not lib"[/EDIT]
Image Image
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

I can't remember who, but someone mentioned a possible work around. If you write a wrapper .dll for the lib functions in PB 3.94 then you can use that .dll without a problem in PB 4.0. Does mean you'll have to ship the .dll with your project though.
~I see one problem with your reasoning: the fact is thats not a chicken~
Straker
Enthusiast
Enthusiast
Posts: 701
Joined: Wed Apr 13, 2005 10:45 pm
Location: Idaho, USA

Post by Straker »

Thanks. That's a good tip, unfortunately sec's lib is kinda unstable when decrypting with large strings, and I have been unable to find why its crashing which is another reason to come up with source code.
Image Image
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Post by fsw »

Somebody in the german forum is converting AES code to pb (not finished yet):

http://www.purebasic.fr/german/viewtopic.php?t=8779

hope you understand german :wink:
Straker
Enthusiast
Enthusiast
Posts: 701
Joined: Wed Apr 13, 2005 10:45 pm
Location: Idaho, USA

Post by Straker »

Thanks. I saw that thread. He is converting it from C, but I thought it might be easier to convert from a BASIC dialect.
Image Image
mskuma
Enthusiast
Enthusiast
Posts: 573
Joined: Sat Dec 03, 2005 1:31 am
Location: Australia

Post by mskuma »

Hmm just today I came across both Sec's & Max's (hard-to-find) AES libs, and both seem to work ok with PB4 (and with various examples floating around), though I've yet to really thrash these libs. Another (pay) option is to check out slavasoft's quickcrypt lib which I mention because (unlike most others) they have a static lib available.
Post Reply