Ed25519 ported to Java
Switch branches/tags
Nothing to show
Clone or download
Latest commit 34a087a Mar 16, 2015
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md Discourage use of the code Mar 16, 2015
ed25519.java Code is complete May 30, 2012
test.java Code is complete May 30, 2012
validtest.txt Code is complete May 30, 2012


Don't use this!

This library was the first implementation of ed25519 in Java, and I highly recommend you don't use this for anything serious. It uses BigInteger for everything and is therefore extremely slow (takes 5 seconds to sign a message) and is also not secure against side-channel or timing attacks.

Instead, you should use the updated version by str4d which is not only much faster, but also more secure than this code.

Consider this code to be legacy.


Ed25519 ported to Java

This class was ported from the Python Ed25519 reference implementation, located at http://ed25519.cr.yp.to/python/ed25519.py

It is not meant to be a proper OOP Java class, but rather a (mostly) direct translation from the Python code.

Compile and run test.java, and compare the output to validtest.txt - if it matches, you have a working Ed25519 library.

This code is released to the public domain and can be used for any purpose.