Cryptography Stack Exchange is a question and answer site for software developers, mathematicians and others interested in cryptography. 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

Does anybody know any free implementation of either order preserving encryption or order preserving hashing? I've found some codes like CMPH but I need to dynamically add new DATA and that's why most of them doesn't apply.

Thank you!

share|improve this question

closed as off-topic by e-sushi, AFS, Gilles, DrLecter, rath Mar 4 '14 at 12:17

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

I just answered a similar question here:… – pg1989 Jun 22 '13 at 1:47
The scheme I describe is the one used in CryptDB. – pg1989 Jun 22 '13 at 1:47

CryptDB implements order-preserving encryption, and its source code is publicly available. In fact, rather than building your own system that uses order-preserving encryption, you might try just using CryptDB.

Alternatively, in a pinch, I suppose you could take one of the papers that describes an order-preserving encryption algorithm and implement it yourself.

share|improve this answer
I looked at the code and still it gets very complex when it comes in OPE. What they do is that they choose random numbers from a distribution and then they check for the order?Or this is the naive approach? – curious Apr 11 '13 at 13:49

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