dchest / tweetnacl-js

Port of TweetNaCl cryptographic library to JavaScript
https://tweetnacl.js.org
The Unlicense
1.75k stars 292 forks source link

Compatability with NaCl? #203

Closed Niklas81 closed 3 years ago

Niklas81 commented 3 years ago

Not a bug, just a question, as I haven't been able to find this elsewhere:

If I use Tweetnacl.js to encrypt a string/json-object, will I then be able to decrypt it in Go using x/crypto/nacl?

Meaning this: https://pkg.go.dev/golang.org/x/crypto/nacl/

In other words, is this implementation compatible with pure NaCl? Does version of both products matter?

dchest commented 3 years ago

It is compatible regardless of the version.

Niklas81 commented 3 years ago

Awesome, thanks!