RSA2048 encryption
#5
Thanks Stephen, I found that this RSA2048 encryption is not so good because of :

1. Too Slow in Auto generate 1024 prime numbers
2. RSA2048 is not as secure as AES256
3. The FUNCTION RsaEncrypt() limits the message string to a maximum of 244 characters

Here's what I found about RSA2048 :

What RSA-2048 Is Secure Against
• Brute-force / factoring by classical computers: No known classical algorithm can factor a 2048-bit RSA modulus in any feasible timeframe. The best known method (GNFS) would require resources far beyond any individual or even most nation-states for a single key. RSA-2048 is estimated to have roughly 110+ bits of security strength—well above what's practically breakable today.
• Direct ciphertext-only attacks: Without the private key and without implementation flaws, an attacker holding just the ciphertext (like your file) cannot recover the plaintext.

Important Caveats — "Secure" Is Not Absolute
1. Implementation matters more than key size. RSA-2048 with proper padding (OAEP) is secure. RSA-2048 with no padding ("textbook RSA") can be broken trivially for short messages via integer root extraction. RSA-2048 with PKCS#1 v1.5 padding has known oracle attack risks. The algorithm's strength is wasted if the implementation is flawed.
2. Side-channel and oracle attacks. Bleichenbacher-style attacks, timing attacks, and padding oracles can break RSA in practice even at 2048 bits—but these require the attacker to interact with the decryption system, not just possess a static file.
3. Key management is the real weak point. A stolen private key, a weak random number generator during key generation, or shared prime factors between keys (which has happened in the wild) completely undermine RSA-2048 regardless of its mathematical strength.
4. Quantum computers change the picture. Shor's algorithm would break RSA-2048 efficiently on a sufficiently large fault-tolerant quantum computer. Such a machine does not exist today, but "harvest now, decrypt later" is a real concern for long-lived secrets. This is why post-quantum cryptography is being standardized and migrated to.
5. RSA-2048 is being phased out for new long-term systems. NIST and others recommend transitioning away from RSA-2048 for new systems with long security lifetimes, partly due to quantum risk and partly because elliptic curve cryptography (e.g., ECDSA P-256) offers comparable security with much smaller keys. RSA-3072 or larger is often recommended where RSA must be used long-term.

Additional notes on comparison between RSA2048 and AES256 :

From a purely cryptographic strength perspective, AES-256 is stronger than RSA-2048. According to the security strength assessments by the National Institute of Standards and Technology (NIST), RSA-2048 provides only approximately 112 bits of security strength, whereas AES-256 provides 256 bits of security strength.

Anyway, Thanks Stephen , but with all the limitations of RSA2048 expound above, I won't be using it any sooner
Reply


Messages In This Thread
RSA2048 encryption - by Mannish Bhandari - 13.11.2026, 20:29
RE: RSA2048 encryption - by Dale Yarker - 13.11.2026, 21:55
RE: RSA2048 encryption - by Mannish Bhandari - 13.11.2026, 22:34
RE: RSA2048 encryption - by Steven Pringels - 15.11.2026, 15:18
RE: RSA2048 encryption - by Mannish Bhandari - 15.11.2026, 18:14

Forum Jump:


Users browsing this thread: 1 Guest(s)