Dart API Referencedart:cryptoCryptoUtils

CryptoUtils Class

Utility methods for working with message digests.

Static Methods

Code String bytesToBase64(List<int> bytes, [int lineLength]) #

Converts a list of bytes (for example a message digest) into a base64 encoded string optionally broken up in to lines of lineLength chars separated by '\r\n'.

static String bytesToBase64(List<int> bytes, [int lineLength]) {
  return _CryptoUtils.bytesToBase64(bytes, lineLength);
}

Code String bytesToHex(List<int> bytes) #

Convert a list of bytes (for example a message digest) into a hex string.

static String bytesToHex(List<int> bytes) {
  return _CryptoUtils.bytesToHex(bytes);
}