Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fast QB64 base64 encoder & decoder
#1
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. 

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.

[Image: Screenshot-2023-11-18-125203.png]

Always find the latest version of this library here:  InForm-PE/InForm/extensions


Attached Files
.zip   libbase64.zip (Size: 3.48 KB / Downloads: 31)
Reply


Messages In This Thread
Fast QB64 base64 encoder & decoder - by a740g - 11-18-2023, 07:26 AM
RE: Fast QB64 base64 encoder & decoder - by Dav - 11-18-2023, 04:35 PM



Users browsing this thread: 1 Guest(s)