> Command_Prompt_Blog \
  • Home
  • Acronyms
  • Cheat-Sheets
  • User Manuals

RSA

The Mathematics of RSA Encryption

The Mathematics of RSA Encryption

RSA is one of those things that sounds complex until someone explains it with a clear example. Let's break it down step-by-step, with small, human-readable numbers, so it's easy to follow and fun to understand. What is RSA? RSA is a powerful and widely-used asymmetric encryption
Claudia 07 Jan 2026

Encrypt / Decrypt strings with RSA in Node.JS

Interesting things that go through my mind during lock-down haha! const crypto = require('crypto'); const PASSPHRASE = 'I had learned that some things are best kept secret.'; const KEY_PAIR_OPTIONS = { modulusLength: 2048, publicKeyEncoding: { type: 'spki', format: 'pem' }, privateKeyEncoding: { type: 'pkcs8'
Hec P. 21 Nov 2020

How to generate RSA public and private keys with OpenSSL

Before anything, I assume that you already have OpenSSL installed in your PC. In case you don’t and you are a Windows you can download it from this URLs: * http://slproweb.com/products/Win32OpenSSL.html * http://gnuwin32.sourceforge.net/packages/openssl.htm I personally used the first one. After
Hec P. 22 Dec 2017

How to generate RSA key pair in Java 1.8

Recently I was wondering how to generate a private key in Java for a personal project. I found out how to generate the actual key pair with RSA algorithm. Here is the java code for that, a simple class that you can run to check how things work. import java.
Hec P. 15 Mar 2017
> Command_Prompt_Blog \ © 2026. Powered by Ghost