diff options
| author | Chanin Timbal <[email protected]> | 2024-05-31 17:00:30 -0700 |
|---|---|---|
| committer | Chanin Timbal <[email protected]> | 2024-05-31 17:00:30 -0700 |
| commit | abd25f91c773ba9fc3584441aee386e90110b845 (patch) | |
| tree | e29517b26e47f245be2f07d9e27c1cd10a7a971e /CST 126/Homework 2/Homework2/Base64Converter.hpp | |
| parent | Purged all previous commits and reset Repo (diff) | |
| parent | wrote some code for the encoding function in the helper file (diff) | |
| download | homework-1-chaninnohea-abd25f91c773ba9fc3584441aee386e90110b845.tar.xz homework-1-chaninnohea-abd25f91c773ba9fc3584441aee386e90110b845.zip | |
Merge branch 'develop' of https://github.com/OIT-WI-2024/homework-1-chaninnohea into develop
Diffstat (limited to 'CST 126/Homework 2/Homework2/Base64Converter.hpp')
| -rw-r--r-- | CST 126/Homework 2/Homework2/Base64Converter.hpp | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/CST 126/Homework 2/Homework2/Base64Converter.hpp b/CST 126/Homework 2/Homework2/Base64Converter.hpp index 704079b..36e55e4 100644 --- a/CST 126/Homework 2/Homework2/Base64Converter.hpp +++ b/CST 126/Homework 2/Homework2/Base64Converter.hpp @@ -1,10 +1,25 @@ #ifndef BASE64_CONVERTER_HPP #define BASE64_CONVERTER_HPP +char characterMap[] = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', +'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', +'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', +'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', +'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '/', '+'}; -//encode -//decode +inline char* Base64Encode(char* buffer, size_t& size) +{ + + + + + + + + + +} #endif
\ No newline at end of file |