Questions tagged [rsa]

An asymmetric (e.g. public-key) cryptosystem, based on modular exponentiation with big exponents and modulus. RSA can be used both for signature and encryption with proper paddings.

RSA is named after its inventors Ronald L. Rivest, Adi Shamir, and Leonard Adleman.

The security of RSA depends on the hardness to factor big numbers (e.g. the public key) into its prime factors (to derive the private key) and RSA problem.

2791 questions
27
votes
1 answer

What data is saved in RSA private key?

What data is saved in RSA private key in openssl? How to view it? Wikpedia says these variables are saved.
Smit Johnth
  • 1,681
  • 4
  • 17
  • 27
20
votes
6 answers

How do ciphers change plaintext into numeric digits for computing?

For example, in RSA, we use this for encryption: $ciphertext = (m^e \mod n)$ and for decryption. If our message is "hello world", then what number do we have to put as $m$ in the RSA formula?
Ted
  • 201
  • 1
  • 2
  • 3
15
votes
3 answers

Is there a specification for the "BEGIN RSA PRIVATE KEY" format?

Until now I didn't find a specification (RFC or similar) for the file format that uses the BEGIN RSA PRIVATE KEY prefix and END RSA PRIVATE KEY suffix. Where is it defined? Is there an official name for it? It seems to be at least related to the…
Gustave
  • 260
  • 1
  • 2
  • 7
15
votes
2 answers

RSA Proof of Correctness

Can anyone provide an extended (and well explained) proof of correctness of the RSA Algorithm? And why is it needed? I can't say that this or this helped me much, I'd like a more detailed and newbie like explanation, if you don't mind too much... ;)
Matteo
  • 1,131
  • 2
  • 12
  • 22
15
votes
1 answer

RSA cracking: The same message is sent to two different people problem

Suppose we have two people: Smith and Jones. Smith public key is e=9, n=179 and Jones public key is e=13, n=179. Bob sends to them a message $M$. The encrypted message $C_s$ to Smith is 32. The encrypted message $C_j$ to Jones is 127 I tried to…
Tomas
  • 153
  • 1
  • 1
  • 5
13
votes
2 answers

RSA encryption using multiplication

Generally in RSA we encrypt as $m^e \pmod n$. Will RSA work if we replace the power by normal multiplication? $E = (m \times e) \mod n$ and decryption as $c \times d \mod n$. What will be $d$ disadvantage if it works ?
Vinny
  • 241
  • 1
  • 6
12
votes
1 answer

How much stronger is RSA-2048 compared to RSA-1024?

How much stronger is RSA-2048 compared to RSA-1024? It is hard to imagine very big numbers. So what would be your way to explain the difference to someone who doesn't know much about cryptography?
user27296
  • 121
  • 1
  • 1
  • 4
12
votes
2 answers

Can RSA be used to encrypt p?

In RSA you choose $n=pq$ where $p$ and $q$ are large primes with similar length. Then you choose $e$ that is coprime with $\phi(n)$ and find $d$ that is modular multiplicative inverse of $e$ modulo $\phi(n)$, so $ed \equiv 1 \mod \phi(n)$. Then…
desowin
  • 163
  • 7
10
votes
4 answers

Encrypting small values with RSA private key

I'm looking for best practices when it comes to encrypting small (< 128 bytes) amounts of data with the RSA private key. Signing it would make the resulting payload too large.
joe
  • 201
  • 2
  • 4
10
votes
2 answers

Is this definition of an RSA modulus safe?

Suggested definition A positive integer is a safe RSA modulus if, after removing all its prime factors less than 512 bits, it is composite and has size at least 2048 bits. Discussion I want to build the smallest-possible safe RSA modulus without a…
Randomblue
  • 512
  • 3
  • 13
10
votes
4 answers

Is an RSA variant with public exponent $e=f+(p-1)\cdot(q-1)$ safe (for $f$ random in some small interval)?

Alice is going to use some existing RSA scheme (employing industry-standard signature or/and encryption with proper padding), which she can't change, or influence beyond her choice of key. In this scheme, all public modulus $n$ are exactly $b$ bits…
fgrieu
  • 140,762
  • 12
  • 307
  • 587
10
votes
1 answer

33c3ctf beeblebrox RSA Sign challenge: any tipps?

I recently participated in the 33c3 ctf competition and tried to solve the beeblebrox challenge but could not crack it and nobody posted a writeup/exploit of it so far so I want to get help solving it (the competition is long over). You can get the…
arturh
  • 211
  • 1
  • 7
9
votes
4 answers

Is it possible to apply RSA on complex numbers?

RSA is a popular public-key cryptography algorithm. It has some mathematical assumptions. I mean, one cannot apply RSA on elements of any algebraic structure. Elements from certain algebraic structures are only eligible for utilization in RSA. I…
hanugm
  • 499
  • 7
  • 19
9
votes
2 answers

If we can find prime numbers larger than 17 milion digits, why can't we find all 1024bit primes?

"Largest Known Prime Number Discovered; Has 17,425,170 Digits" http://www.sciencedaily.com/releases/2013/02/130213225424.htm If we can find prime numbers larger than 17 milion digits, why can't we find all 1024bit (just 309 decimal digits) primes?
user129789
  • 425
  • 1
  • 5
  • 7
9
votes
2 answers

RSA: What would happen if you chose n to be a prime?

If Alice were to choose n to be a prime, instead of the product of two primes, what exactly would go wrong in the RSA cryptosystem? How would Bob decrypt her message?
1
2 3
30 31