dart-pg
dart-pg copied to clipboard
Dart PG - The OpenPGP library in Dart language
Remove all async except for the `OpenPGP` top-level API. Expose equivalent `OpenPGPSync` API. See #4
Upgraded the pinenacl dependency. Dart 3.5.0 has a breaking change that deprecates the `UnmodifiableUint8ListView` class. This was pushed to the stable version of flutter earlier this month. It works fine...
Given this armored public key: -----BEGIN PGP PUBLIC KEY BLOCK----- xjMEZcX4ehYJKwYBBAHaRw8BAQdArS4IJzI41xiclNFn2euYhhnnJepj2+4C li1G7/zCrFDNdDc4MDIwYzk3MmQ4NmJiMDliMmY5OTFmYjBiNzlmNGViOGUw OWViNDNiNTAwZTMwZGVhNzE4MjI3MDQ0Y2ExMzM6MCA8MTk2R0pXeUx4ekF3 M01pclRUN0JxczJpR3BVUWlvMjlHSEBydW5vbmZsdXguaW8+wosEEBYKAD4F gmXF+HoECwkHCAmQaxuSLPI6z2MDFQgKBBYAAgECGQECmwMCHgEWIQQsFiWT TSE5z0DVycVrG5Is8jrPYwAAmlABAPERnWR0dYPVA0PQHYpK+FcDYumvc6Qx bGxlVkw1Jg1HAPdphwzk1ZHq8pIxQ9j9D1+pqlcQvH5X05XitCFKzWsOzjgE ZcX4ehIKKwYBBAGXVQEFAQEHQKO4G2HuC0BKs5etwSp7vglsKhczqmvj2UMs QpBzawdmAwEIB8J4BBgWCgAqBYJlxfh6CZBrG5Is8jrPYwKbDBYhBCwWJZNN ITnPQNXJxWsbkizyOs9jAACZjwD9Gp9j9naqFiZdnoDIGTsbP/HfB/JQzU0z jcQTPAJ6J3IA/RTEG/U7LSQLC+unhLKX6wMKgi3KWy1wVSEQGA+Ya9cK =PaLS -----END PGP PUBLIC KEY BLOCK----- This code fails:...
final spublicKey = await OpenPGP.readPublicKey(pubKey); final rprivateKey = await OpenPGP.decryptPrivateKey(privKey1, passphrase); final decryptedMessage1 = await OpenPGP.decrypt( await OpenPGP.readMessage(encryptedMessage), decryptionKeys: [rprivateKey], verificationKeys: [spublicKey], ); final verifications = decryptedMessage1.armor(); print( "decrypting message...
Sync API
Thanks for this great library. I have a use case where I would like to return the results of `OpenPGP.encrypt` from a synchronous function. Drilling down through the code I...
I have a use case where I may need to decrypt multiple cyphertexts symmetrically encrypted with the same password. Currently it seems that I must pay the penalty for converting...
## Purpose - Support generate PGP key pair with seed for ecdsa and eddsa ## Approach - add secureWithSeed method in Helper class