Add API to seal with a user's public key
This commit is contained in:
parent
50a67acb75
commit
86b60fd487
1 changed files with 4 additions and 0 deletions
|
@ -220,4 +220,8 @@ class CryptoUtil {
|
|||
Uint8List input, Uint8List publicKey, Uint8List secretKey) {
|
||||
return Sodium.cryptoBoxSealOpen(input, publicKey, secretKey);
|
||||
}
|
||||
|
||||
static Uint8List sealSync(Uint8List input, Uint8List publicKey) {
|
||||
return Sodium.cryptoBoxSeal(input, publicKey);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue