Skip to main content
Version: 7.2405.x.x LTS

Base64 object methods

MethodDescriptionSample
base64:encode(data)Input parameter: the string to encode.Result: the encoded string.result = base64:encode("hello world")
base64:decode(data)Input parameter: the encoded string to decode.Result: the decoded string.plain = base64:decode("aGVsbG8gd29ybGQK")

Example

base64 = nevis.crypto.base64.new()
result = base64:encode("hello world")
plain = base64:decode("aGVsbG8gd29ybGQK")