Fast Curve Crypto Library - TweetNacl in Java

API/Usage

Suggest always use TweetNaclFast implementation

Public key authenticated encryption

As an alternative, the nonce can be omitted from the Box() call, and passed in the box and open calls, like:

Secret key authenticated encryption

As an alternative, the nonce can be omitted from the SecretBox() call, and passed in the box and open calls, like:

Signature

Hash

Refer to com.iwebpp.crypto.tests for details

About Random generation

Testing

In top directory:

$ mkdir out
$ javac -d out src/com/iwebpp/crypto/*.java src/com/iwebpp/crypto/tests/*.java
$ java -cp out com.iwebpp.crypto.tests.TweetNaclTest
$ java -cp out com.iwebpp.crypto.tests.TweetNaclFastTest

License MIT