cryptography_ohos 1.0.0
cryptography_ohos: ^1.0.0 copied to clipboard
Makes 'package:cryptography' use platform APIs in Ohos.
cryptography_ohos #
Makes 'package:cryptography' use platform APIs in Ohos.
Getting Started #
In pubspec.yaml:
dependencies:
cryptography: ^2.5.0
cryptography_ohos: ^1.0.0
Behavior by algorithm #
AES-GCM #
FlutterAesGcm is used in Ohos.
NIST ECDH / ECDSA #
FlutterEcdh and [FlutterEcdsa] are available for Ohos.
HMAC #
FlutterHmac is available for Ohos.
PBKDF2 #
FlutterPbkdf2 is available for Ohos.
Platform Implementation #
Please note that this table represents the functions implemented in this repository.
| Function | Android | Ohos |
|---|---|---|
| encrypt(AES+GCM) | ✅ | ✅ |
| decrypt(AES+GCM) | ✅ | ✅ |
| AES+CBC加解密 | ✅ | ✅ |
| AES+CTR加解密 | ✅ | ✅ |
| HMAC 哈希算法 | ✅ | ✅ |
| PBKDF2密钥派生 | ✅ | ✅ |
| ECDSA签名验签 | ✅ | ✅ |
| ECDH密钥协商 | ✅ | ✅ |
| Chacha20.poly1305Aead | ✅ | ❌ |
| Xchacha20.poly1305Aead | ✅ | ❌ |
| X25519密钥协商 | ❌ | ❌ |
| ED25519签名验签 | ❌ | ❌ |