This commit is contained in:
Jonathan Staab 2023-08-11 13:24:29 -07:00
parent 30696049cc
commit 94330ffb10

3
44.md
View File

@ -74,8 +74,9 @@ export function encrypt(privkey: string, pubkey: string, text: string, v = 1) {
}
export function decrypt(privkey: string, pubkey: string, payload: string) {
let data
try {
payload = JSON.parse(payload) as {
data = JSON.parse(payload) as {
ciphertext: string
nonce: string
v: number