A Bit of RSA and PowerShell, And The Wonder of dP, dQ and InvQ
In RSA, we would hope that many in cybersecurity would know that we generate two prime numbers (p and q), and then compute the modulus:
Then we pick an e value, and compute d from:
and where:
This gives us a private key of (d,N) and a public key of (e,N). We can then encrypt with: