Anyway, here’s a script to retrieve the base64 alphabet from your encryption module:
local encrypt = require(script.Parent.Parent.Packages.encrypt)
function getBase64Alphabet()
local alphabet = ""
for i=0, 63 do
--[[
0b00100010 (34)
we shift it to the left by two
0b10001000 (136)
then encrypt converts it to a string
"10001000"
then encrypt appends 0000
"100010000000"
then encrypt takes the first 6 characters
"100010"
then gives us the corresponding character to this number
"H"
the string.sub is there to remove the excess garbage
]]
alphabet ..= string.sub(encrypt(string.char(bit32.arshift(i, -2))), 0, 1)
end
return alphabet
end
print(getBase64Alphabet())
Try it!
Here’s it extracting the default base64 alphabet: