fix: replace openssl-based base64 with pure Lua implementation #28
Labels
No labels
coordination/cross-repo
coordination/needed
effort
large
effort
medium
effort
small
meta/duplicate
meta/planning
meta/wontfix
priority
high
priority
low
priority
medium
session
blocker
session
handover
session
next
status
blocked
status
done
status
in-progress
status
review
status
to-go
type
admin
type
bug
type
config
type
deployment
type
docs
type
enhancement
type
feature
type
handover
type
infrastructure
type
installation
type
maintenance
type
migration
type
research
type
security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
DAW/daw-lua-common#28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
base64.luauses openssl via io.popen and writes a temp file forevery encode/decode call. Base64 is a pure algorithm -- no external
dependency, no filesystem access needed.
Fix
Replace with a pure Lua implementation (~30 lines).
Removes: openssl dependency, io.open, io.popen, os.time temp files.
Also:
Impact
Faster, no dependencies, works without openssl installed.
b64url_encode/b64url_decode reimplemented on top of the pure-Lua b64_encode/b64_decode (issue #35) -- openssl dependency removed entirely. Verified byte-identical output against openssl base64 across ASCII, empty string, whitespace, and multi-byte UTF-8 samples. base64.lua is now genuinely zero-dependency, matching the README claim.