DEC is a library for Embarcadero Delphi, containing different cryptographic algorithms . It contains algorithms for these categories:
- Ciphers: encryption/decryption of data
- Hashes: "cryptographic checksums"
- Key deviation algorithms like Kdf1-Kdf3
- A cryptographic pseudo random number generator
- CRCs: non cryptographic checksums based on CRC algorithms
The last released version 5.2 is compatible with Delphi 7-2007 at least. For using it with newer versions some small modification is necessary in order to compile it. If done it is compatible up to 10.2 Tokio at least. This version is only compatible with Win32/Win64!
The version 6.0 which is still in development is compatible with Delphi 2009 - Delphi 10.4.1 Sydney. When defining the NO_ASM define in DECOptions.inc it is compatible with all platforms! It might be compatible with FPC, but this has not been focus and is not tested.
After some years of work we finally managed to release V6.0 now. Details about the changes and additions in V6.0 can be found in the DEC60.pdf file in the docs subfolder of the development branch.
In comparison to 5.2 we added some console, VCL and FMX based demo applications. The FMX based demos are even available via Google play as "DEC cipher demo" and "DEC hash demo".
In the root folder of DEC V6.0 you will find further files with information about this project like NOTICE.txt, CONTRIBUTING.md, SECURITY.md. Also take the time to read DEC60.pdf in the Docs folder or look at the demos provided in the Demos subfolder.
DEC 5.2 comes with some "arcane" test program testing the algoithms implemented using test data supplied via some text file. For many algorithms this test data stems from official documentation of the algorithms itsself. DEC 5.2 passes these tests.
DEC 6.0 reworked these tests into DUnit and DUnitX tests. We also added some more tests and with this replaced the "arcane" test program which used hard to understand code. A few of the implemented unit tests still fail, but this is simply because they are empty sceletons at this point in time waiting to be filled in. We first need to work out how to implement these tests and maybe look for test data. Why don't you help out by researching useful test data for those few tests?
- MD2
- MD4
- MD5
- RipeMD128
- RipeMD160
- RipeMD256
- RipeMD320
- SHA0
- SHA1
- SHA256
- SHA384
- SHA512
- Haval128
- Haval160
- Haval192
- Haval224
- Haval256
- Tiger
- Panama
- Whirlpool0
- Whirlpool1
- WhirlpoolT
- Square
- Snefru128
- Snefru256
- Sapphire
- Null
- Blowfish
- Twofish
- IDEA
- Cast256
- Mars
- RC4
- RC6
- AES
- Square
- SCOP
- Sapphire
- 1DES
- 2DES
- 3DES
- 2DDES
- 3DDES
- 3TDES
- 3Way
- Cast128
- Gost
- Magma
- Misty
- NewDES
- Q128
- RC2
- RC5
- SAFER
- Shark
- Skipjack
- TEA
- XTEA
- TEAN
Modes ending on x have been invented by the original developer of DEC
- ECBx
- CBCx
- CTSx
- CTS3
- CFB8
- CFBx
- OFB8
- OFBx
- CFS8
- CFSx
- KDF1
- KDF2
- KDF3
- MGF1
- Copy
- HEX
- HEXL
- Base16
- Base16L
- DECMIME32
- Base64
- MIME64
- Radix64
- PGP
- UU
- XX
- ESCAPE
- 8
- 10
- 12
- 16
- 16CCITT
- 16XModem
- 24
- 32
- 32CCITT
- 32ZModem
- 8ATMHEC
- 8SMBus
- 15CAN
- 16ZMODEM