- Version 1.0
- Download 37
- File Size 6.42 KB
- File Count 1
- Create Date October 14, 2018
- Last Updated October 14, 2018
Formwork - Base64 Encoding
Formwork library for encoding of text and files in Base64 in accordance with RFC4648 in the 12d Programming Language (12dPL).
Contains header file (.h) and source code (.c).
These files are licensed under the MIT License
Example usage:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
#include "fw_base64.h" Dynamic_Text encoded_output; // Encode a text string Integer rv = FW_Base64_encode_text("Example", BASE64_ALPHABET_STD, BASE64_USE_PADDING, BASE64_SPLIT_LENGTH_DEFAULT, encoded_output); // Encode a file Text source_file = "example.txt"; rv = FW_Base64_encode_file(source_file, BASE64_ALPHABET_STD, BASE64_USE_PADDING, BASE64_SPLIT_LENGTH_DEFAULT, encoded_output); |
Test cases are available here:
Please leave a comment if you find any bugs, have any questions or find this code useful.
The following two tabs change content below.
Matthew is a Civil Engineer with 20 yrs experience in the industry. He started work as a design consultant involved in numerour road, highway, drainage and land development projects. During that time, he became an integral part of the 12d development group, developing company standards, conventions, and customisations and providing support and training to users in offices around the world. After his design role, Matthew moved to head up the UK office of 12d Solutions, being responsible for the sales, support and training for all 12d Model users throughout Europe, the Middle East and Africa (EMEA).
Since returning to Australia in 2015, he has setup his own business providing consulting services to the civil infrastructure industry. As part of this work, he has helped develop innovative and streamlined survey and data management processes on large construction projects, including Northconnex, Westconnex Stage 3A, Melbourne Metro and others.
Latest posts by Matthew Monk (see all)
- From the archives: drainage.4d for Victoria? - February 6, 2022
- Fit 3pt Arcs (12d App) - January 10, 2022
- Oops! Download links fixed - July 17, 2021