INNER CODE UNIT · Dart

Encrypted

leocavalcante/encrypt · lib/src/encrypted.dart:4

class Encrypted {
  /// Creates an Encrypted object from a Uint8List.
  Encrypted(this._bytes);

  final Uint8List _bytes;

  /// Creates an Encrypted object from a hexdecimal string.
  Encrypted.fromBase16(String encoded) : _bytes = decodeHexString(encoded);

  /// Creates an Encrypted object from a Base64 string.
  Encrypted.fromBase64(String encoded)
      : _bytes = convert.base64.decode(encoded);

  /// Creates an Encrypted object from a Base64 string.
  Encrypted.from64(String encoded) : _bytes = convert.base64.decode(encoded);

  /// Creates an Encrypted object from a UTF-8 string.
  Encrypted.fromUtf8(String input)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…