AESKey.fromUTF8 constructor

AESKey.fromUTF8(
  1. String key, {
  2. Padder padder = const PKCS7Padder(),
})

Implementation

factory AESKey.fromUTF8(String key, {Padder padder = const PKCS7Padder()}) =>
    AESKey(Uint8List.fromList(utf8.encode(key)), padder: padder);