encode static method

String encode(
  1. String data, [
  2. String? customAlphabet
])

Encode the provided string into a Base32 encoded string. Optionally, you can specify a custom alphabet for encoding.

Implementation

static String encode(String data, [String? customAlphabet]) {
  return encodeBytes(StringUtils.encode(data), customAlphabet);
}