Information Security Stack Exchange is a question and answer site for information security professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Are there any implementations of cryptographic commitment schemes available as API/libraries in Java? I looked around in the security package and couldn't find much. Any help is appreciated.


share|improve this question
up vote 2 down vote accepted

There is a huge variety of commitment schemes out there; they have various characteristics. The simplest commitment scheme is a simple hash, and Java does offer implementation of the most standard hash functions (through the API). More advanced commitment schemes allow for proving that the commitment is "correct" (the committed data fulfills some algebraic property) without opening it. Many such schemes have been designed, but none is a standard in its own right, so there is no readily available implementation in standard Java.

(That's the difference between a cryptographic algorithm, as described in an academic article, and a standard: the latter states unambiguously where each bit goes, dealing with boring but important issues like endianness and corner cases.)

At least Java does offer some useful tools for implementing cryptographic algorithms, namely BigInteger and hash functions.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.