Coverts base-8, base-16, base-32 to byte array and vice-versa.
Build to convert byte patterns to base-X conversion.
- Base-8:
Can be used to enter a byte with a basic keyboard. The numbers 1-8 are used. - Base-16:
Is a half byte and needs no padding bit. It can be used on a hex keyboard with characters0-9 and a-f/A-F. - Base-32:
Most used for secrets in cryptographic as it can be entered with a basic keyboard. The used characters areA-Z and 2-7. For padding, the character=is used. - Base-64:
It increases the base-32 with lowercase letters, the full decimal digits and two special characters. It can also be entered with the basic keyboard.
Note: Currently not implemented.
- C Unity Tests
- GNU Make v4.3
- gcc v13.3.0
- Codecov
- LCOV version 2.0-1
Include the source and header files into your project. The header files are located in the inc directory. The source files are located in the src directory.
Implemented and tested. Include the inc/base8_converter.h header file. Do not forget to compile the file src/base8_converter.c for using these functions.
Implemented and tested.
Include the inc/base16_converter.h header file.
See the doxygen comments for base16_decodeString and base16_encodeBytes functions.
Do not forget to compile the file src/base16_converter.c for using these functions.
Implemented and tested.
Include the inc/base32_converter.h header file.
See the doxygen comments for base32_decodeString and base32_encodeBytes functions.
Do not forget to compile the file src/base32_converter.c for using these functions.
!TODO
Converter to read and write byte data with different bases.
Distributed under the GNU general public license. See LICENSE for more information.
- Adrian STEINER (adi.steiner@hotmail.ch)