Compare commits

...

2 Commits

Author SHA1 Message Date
fiatjaf
896af30619 release v0.24.1 2022-09-06 15:19:29 -03:00
bjong
a8542c4b56 fix: CJK characters are garbled after decryption 2022-09-06 15:17:50 -03:00
2 changed files with 2 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ export function decrypt(privkey, pubkey, ciphertext) {
Buffer.from(normalizedKey, 'hex'),
Buffer.from(iv, 'base64')
)
let decryptedMessage = decipher.update(cip, 'base64')
let decryptedMessage = decipher.update(cip, 'base64', 'utf8')
decryptedMessage += decipher.final('utf8')
return decryptedMessage

View File

@@ -1,6 +1,6 @@
{
"name": "nostr-tools",
"version": "0.24.0",
"version": "0.24.1",
"description": "Tools for making a Nostr client.",
"repository": {
"type": "git",