11-18-2023, 07:26 AM
(This post was last modified: 10-14-2024, 09:33 PM by a740g.
Edit Reason: Add license info
)
This is a single-file, simple and 100% QB64 implementation of Base64 encode and decode. It may not be as fast as a C LUT based implementation, but it is good enough if you want a no nonsense QB64 library.
Base64_Decode() is more optimized than Base64_Encode() because I am guessing that is what most folks may want to use. It's much faster than my earlier implementation that you can find here: Something Tricky (qb64phoenix.com).
Here are some numbers from my Ryzen 5600X box.
Always find the latest version of this library here: InForm-PE/InForm/extensions
The Bin2Data tool lives here: https://qb64phoenix.com/forum/showthread.php?tid=2228
Code: (Select All)
' Two functions
FUNCTION Base64_Encode$ (s AS STRING)
FUNCTION Base64_Decode$ (s AS STRING)
Base64_Decode() is more optimized than Base64_Encode() because I am guessing that is what most folks may want to use. It's much faster than my earlier implementation that you can find here: Something Tricky (qb64phoenix.com).
Here are some numbers from my Ryzen 5600X box.
Always find the latest version of this library here: InForm-PE/InForm/extensions
The Bin2Data tool lives here: https://qb64phoenix.com/forum/showthread.php?tid=2228