tweetnacl-java

TweetNacl in Java: port of tweetnacl-js

Java CI

Download

Using Gradle

implementation "io.github.instantwebp2p:tweetnacl-java:1.1.2"

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:

$ mvn test

Support us

License MIT