cipher.process returns an Uint8List which is a list of unsigned integers (0-255). I need to convert this Uint8List to a string that I can easily convert back to the same Uint8List.
var cipherText = cipher.process( inputAsUint8List );
return ASCII.decode(cipherText);
ASCII.decode throws an error since some of the integers are > 127.
Aucun commentaire:
Enregistrer un commentaire