Skip to main content
Version: 9.2605.x.x RR

Base62

Class function​

nevis.crypto.base62.new()​

Creates an object that can use Base62 encoding and decoding for data.

Sample:

base62 = nevis.crypto.base62.new()

Object methods​

base62:encode(data)​

Encodes the given string to Base62. Returns the encoded string.

Sample:

result = base62:encode("hello world")

base62:decode(data)​

Decodes the given Base62-encoded string. Returns the decoded string.

Sample:

plain = base62:decode("MlKnuuxMkgZx0uABm")

Example​

base62 = nevis.crypto.base62.new()
result = base62:encode("hello world")
plain = base62:decode("MlKnuuxMkgZx0uABm")