Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Deterministic asymmetric encryption [Crypt::RSA]

by ikegami (Patriarch)
on Dec 15, 2010 at 21:00 UTC ( [id://877376]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Deterministic asymmetric encryption [Crypt::RSA]
in thread Deterministic asymmetric encryption [Crypt::RSA]

Wouldn't that be Symmetric-key encryption, and not asymmetric encryption as the title suggests?

Oops, yes.

I realize it weakens the encryption. The question is how much?

First, it introduces information leakage. If two records have the same plain text, the creator of one of those records knows the content of the other record. If the plain text is a password, for example, this could allow someone to know someone else's password.

The other concern is that by having more blocks encrypted with the same key, one might be able to attack certain algorithms and maybe even recover the key. The potential impact of using the same key could be lessened if chaining is used (i.e. if the key used to encrypt one block depends on the previous block).

Lots of factors affect how much this matters.

I want to let anyone (any authorized local user) add to a database. E.g. add(encrypt("A")).

It doesn't have to be deterministic to do that. The requirement to use salt (iv) doesn't prevent anyone from adding to the database as long as the salt is included in the database as well.

I want the same users to see if a specific entry has been previously added. E.g. exists(encrypt("A")).

This requires deterministic encryption or hashing. Hashing algorithms have been vetted against these attacks. A particular encryption algorithms? dunno.

So you need deterministic asymmetric encryption, or non-deterministic asymmetric encryption plus hashing.

  • Comment on Re^3: Deterministic asymmetric encryption [Crypt::RSA]

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://877376]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (7)
As of 2024-04-23 14:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found