Base64Encode Issues

How do i use FUNCTION Base64Encode in OB2?

I know they are UTF8 => Base64 | Bytes => Base64 but both are not the same like Base64Encode

If i use OB 1 i get:
am9zbGVuX2tvZXN0ZXJAeWFob28uY29tOnNrMDMyNA==
and if i use OB 2 i get:
aW5wdXQuVVNFUk5BTUU=

I’m pretty sure you’re doing something wrong in the settings of the block, probably using fixed mode instead of VAR or interp, please send the lolicode of that block

1 Like

Test <input.USERNAME>
[email protected]

OB1
FUNCTION Base64Encode “:” → VAR “Encrypted”

Ob2
BLOCK:UTF8ToBase64
input = “input.USERNAME”
=> VAR @uTF8ToBase64Output
ENDBLOCK

BLOCK:UTF8ToBase64
input = $"<input.USERNAME>"
=> VAR @ENCUSER
ENDBLOCK

dont use fixed mode

2 Likes

Thanks worked nice. :slight_smile: