cipher.process返回Uint8List,它是无符号整数列表(0-255).我需要将此Uint8List转换为一个字符串,我可以轻松地将其转换回相同的Uint8List.
var cipherText = cipher.process( inputAsUint8List );
return ASCII.decode(cipherText);
Run Code Online (Sandbox Code Playgroud)
ASCII.decode抛出一个错误,因为一些整数> 127.