W
W
WEBIVAN2014-04-11 11:57:13
OpenSSL
WEBIVAN, 2014-04-11 11:57:13

A question about asymmetric encryption?

There is a numeric value from 0.01 to 100.
It is encrypted with the public key via openssl.
Is such encryption enough to make it impossible to restore the original value by brute force using the encrypted data, or is it still worth finishing it off with random data?
Tests seem to show that the encrypted data is different every time, but I would like to be sure.
If you need to add data, then where should they be added before the number, after, on both sides, or without a difference?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Ocelot, 2014-04-14
@Ocelot

Most likely, openssl itself finishes the data to the specified block size. You can add a timestamp if you want to protect against a "replay" attack (when an attacker can't decrypt the data, but can resend it).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question