B-Con/crypto-algorithms
FreeBasic implementations of standard cryptography algorithms, like AES and SHA-1.
About B-Con/crypto-algorithms
B-Con/crypto-algorithms provides basic, public domain implementations of standard cryptographic algorithms including AES, SHA-1, MD5, Blowfish, DES, RC4, Base64, ROT-13, SHA-256, and MD2. Written from scratch by Brad Conte, these implementations are designed for educational and pragmatic purposes such as comparing specification to actual implementation code or building internal applications that compute test vectors. The code is released into the public domain free of any restrictions, acknowledged but not required. The algorithms are not cryptographically secure (no side-channel resistance) and are not optimized for speed or space; they are primarily intended to be easy to read and compile with no dependencies beyond standard C.
Key Features
Pros & Cons
- Public domain, no licensing restrictions
- Easy to read and understand implementation
- Self-contained, no extra libraries or platform-specific files needed
- Tested against standard test vectors for correctness
- Available in C with straightforward compilation
- Not cryptographically secure (no side-channel resistance)
- Not optimized for speed or memory usage
- Should not be used in production security contexts
- Limited to basic algorithm implementations, no advanced cipher modes