Recent

Author Topic: Implement AES 128 ECB  (Read 1914 times)

crisares

  • Jr. Member
  • **
  • Posts: 63
Implement AES 128 ECB
« on: April 18, 2020, 09:35:00 pm »
Hello everyone!
I need to be able to decrypt a 128 bit hexadecimal string with AES 128 ECB (Electronic Code Book)
what can be used for that?

try this component but I can't get the examples to work .. maybe because I'm new to this language and I'm not figuring out how to do it

DCPCrypt
http://www.cityinthesky.co.uk/opensource/dcpcrypt/

Thank you
« Last Edit: April 18, 2020, 10:41:20 pm by crisares »

Zoran

  • Hero Member
  • *****
  • Posts: 1830
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: Implement AES 128 ECB
« Reply #1 on: May 25, 2020, 02:33:23 pm »
I don't know about your particular problem, but for use with fpc, dcpcrypt should be downloaded from this location: https://sourceforge.net/p/lazarus-ccr/dcpcrypt/ci/master/tree/
There is "Download snapshot" button on that page.

Other sources are old and not maintained.

Some info in wiki.
« Last Edit: May 25, 2020, 02:35:46 pm by Zoran »

Thaddy

  • Hero Member
  • *****
  • Posts: 14358
  • Sensorship about opinions does not belong here.
Re: Implement AES 128 ECB
« Reply #2 on: May 25, 2020, 02:53:00 pm »
Our member Xor-El (short-hand for a very long name...) My Nigerian (dialects, this country has over 100 languages) is not up to date... has an excellent library here:
https://github.com/Xor-el/
Passes all tests...and is maintained...

And he is almost always available for advice.
« Last Edit: May 25, 2020, 03:06:44 pm by Thaddy »
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

Zoran

  • Hero Member
  • *****
  • Posts: 1830
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: Implement AES 128 ECB
« Reply #3 on: May 25, 2020, 09:45:25 pm »
Our member Xor-El (short-hand for a very long name...) My Nigerian (dialects, this country has over 100 languages) is not up to date... has an excellent library here:
https://github.com/Xor-el/
Passes all tests...and is maintained...
And he is almost always available for advice.

Thanks, Thaddy, I somehow didn't know  about these libraries.

it's our igbo friend (I don't know Nigerian languages, but "igbo" means something to me since I read this wonderful book).

mr-highball

  • Full Member
  • ***
  • Posts: 233
    • Highball Github
Re: Implement AES 128 ECB
« Reply #4 on: May 26, 2020, 01:41:54 am »
I second @Thaddy, Xor-el has an excellent library that I use often.
For aes ecb, here's one of the tests which shows usage
https://github.com/Xor-el/CryptoLib4Pascal/blob/master/CryptoLib.Tests/src/Crypto/AESTests.pas#L343

 

TinyPortal © 2005-2018