【发布时间】:2019-12-09 00:02:12
【问题描述】:
如何在 Dart 中编写字节数组?我想实现这个功能,但它是带有byte[] 的Java 代码。也可以用 Dart 写吗?
public static byte[] encrypt(byte[] key, byte[] data) throws Exception {
try {
return performCipher(Cipher.ENCRYPT_MODE, key, data);
} catch (Exception e) {
throw new Exception(e);
}
}
【问题讨论】: