encodeNoPadding static method

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

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

Implementation

static String encodeNoPadding(String data, [String? customAlphabet]) {
  // Encode the input data and then remove any padding characters.
  return encode(data, customAlphabet)
      .replaceAll(_Base32Const.paddingChar, '');
}