Skip to Content
Foundations of Blockchain
book

Foundations of Blockchain

by Koshik Raj
January 2019
Beginner to intermediate
372 pages
11h 17m
English
Packt Publishing
Content preview from Foundations of Blockchain

Encryption and decryption using RSA

Encryption is performed in RSA using the distributed public key. Message M is converted to integer m such that 0 ≤ m < n. Ciphertext c is computed using the exposed public exponent, as follows:

c ≡ me mod (n)

Anyone who possesses the public exponent can perform encryption on the message and transmit it to whoever possesses the private exponent. Whoever has access to the ciphertext and private exponent can perform decryption as follows:

m ≡ cd mod (n)

Message M could be regenerated from the decrypted integer m. This is how RSA makes use of the prime factorization technique to perform encryption and decryption. The process could be performed reasonably quickly for small messages, but it is not the preferred ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Blockchain Basics

Blockchain Basics

Daniel Drescher
What Is Blockchain?

What Is Blockchain?

Sir John Hargrave, Evan Karnoupakis
Mastering Blockchain

Mastering Blockchain

Lorne Lantz, Daniel Cawrey

Publisher Resources

ISBN: 9781789139396Supplemental Content