AES encryption algorithm PureBasic LIB available !

Share your advanced PureBasic knowledge/code with the community.
Max.²
Enthusiast
Enthusiast
Posts: 175
Joined: Wed Jul 28, 2004 8:38 am

Post by Max.² »

@ Newbie

Updated it; was a stupid error in conjuction with the PB string handling.

More in a bit; dinner is done now. :twisted:
newbie
Enthusiast
Enthusiast
Posts: 296
Joined: Tue Jul 29, 2003 5:47 pm
Location: FRANCE
Contact:

Post by newbie »

ok it works now, had verified it with a software I have which does hash of strings ;)

Still, a big Lib ! why is it so huge ? (for a lib)

EDIT : may be should we do another topic for SHA ? or take the old one I done in general discussion, don't know.

EDIT 2 : waiting for your "after dinner" work now... go go go :twisted:
- Registered PB user -

Using PB 4.00
Max.²
Enthusiast
Enthusiast
Posts: 175
Joined: Wed Jul 28, 2004 8:38 am

Post by Max.² »

Back. Yummy. :lol:

The lib is so big, because it also contains SHA2 and HMAC. Especially SHA2 is relatively big.

Not sure if I will get them going today, too. But it shouldn't be too difficult now. The generic functions work, but I want the easy access functions work too.
newbie
Enthusiast
Enthusiast
Posts: 296
Joined: Tue Jul 29, 2003 5:47 pm
Location: FRANCE
Contact:

Post by newbie »

Hey dear, finally come back :)

Ok for the lib size.
May be later (once finished) could you split the lib into corresponding names ? (SHA1, SHA2, etc...).
but I want the easy access functions work too.
take your time, I'm for one who love easy and simple commands :P
- Registered PB user -

Using PB 4.00
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

isnt there something about that you can make a lib only include the needed procedure in an exe?

i think tailbite does that automatic..

Try make different exe's with the different encryptions and see if thats true.
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

thefool wrote:isnt there something about that you can make a lib only include the needed procedure in an exe?

i think tailbite does that automatic..

Try make different exe's with the different encryptions and see if thats true.
Damn, you beat me to it.
sec
Enthusiast
Enthusiast
Posts: 792
Joined: Sat Aug 09, 2003 3:13 am
Location: 90-61-92 // EU or ASIA
Contact:

Post by sec »

newbie wrote: such as , Max :
SHA-1 / SHA-256

Sec :
SHA-384 (is it the good one ?)
SHA-512

I have always liked multitasking ^^

Anyway, downloading your Lib right now :)

EDIT : why the SHA library is so huge (20.3Ko) against only 9Ko for AES ? I would have thought that AES would have been far bigger than a hash algorithm.
done part of me and it is small and simple .why? because it is PURE :twisted:
newbie
Enthusiast
Enthusiast
Posts: 296
Joined: Tue Jul 29, 2003 5:47 pm
Location: FRANCE
Contact:

Post by newbie »

Hi Sec,

it was just an example I was giving, don't know what Max is doing on his side ;)
- Registered PB user -

Using PB 4.00
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

Damn, you beat me to it.
come get some!

:D well i just saw in another thread that you cant jugde on the filesize of the lib, because it only includes the needed procedures.
Max.²
Enthusiast
Enthusiast
Posts: 175
Joined: Wed Jul 28, 2004 8:38 am

Post by Max.² »

newbie wrote:don't know what Max is doing on his side ;)
Currently I am trying to get a little bit of structure into the code snippet and library mess on my system. Then I start a new thread. :lol:

I finished updating the AES Library and need to package it; then I will split the SHA Libraries. Am not sure yet if I will continue on SHA2 next or if I add some more functions to the SHA1 one.

BTW, as thefool said, the size of a library really doesn't matter, only of the functions inside. The size of them can vary royally, depending on the optimization chosen. I personally am more for speed then for size, but maybe it is worth to compile them to 2 versions; most speed and least size.
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Post by NoahPhense »

Ok, so whats the latest here? Which link or code is the AES256?

Anything higher, other than encrypting twice?

- np
kinglestat
Enthusiast
Enthusiast
Posts: 746
Joined: Fri Jul 14, 2006 8:53 pm
Location: Malta
Contact:

Post by kinglestat »

i am mightiliy excited by this post

BUT

where do we download the library ?
and then which post effectiveley describes how to use it ?

I know it might sound or look dumb to some of you
But since none of the urls works there is nothing to go on!

cheers

KingLestat
CherokeeStalker
User
User
Posts: 66
Joined: Fri Oct 17, 2003 2:42 am

SEC's AES v3

Post by CherokeeStalker »

Is this still available for download anywhere ?
Please post a link if it is.
Thanks !
Post Reply