pointycastle

Compatible AES encryption and decryption for Flutter and javascript

若如初见. 提交于 2020-06-09 06:59:25
问题 I am trying to write two functions in flutter and Javascript which I can use throughout my project to encrypt or decrypt data using AES when data is exchanged. For Flutter, I am using the pointycastle package based on instructions https://gist.github.com/proteye/e54eef1713e1fe9123d1eb04c0a5cf9b?signup=true import 'dart:convert'; import 'dart:typed_data'; import "package:pointycastle/export.dart"; import "./convert_helper.dart"; // AES key size const KEY_SIZE = 32; // 32 byte key for AES-256