dchest / tweetnacl-js

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

Compatability with NaCl? #203

Closed Niklas81 closed 4 years ago

Niklas81 commented 4 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 4 years ago

It is compatible regardless of the version.

Niklas81 commented 4 years ago

Awesome, thanks!