Linux Journal: Exploring RSA Encryption in OpenSSL

Written By
Web Webster
Web Webster
Sep 26, 2003

“When sending your credit card number through a public medium,
such as the Internet, your financial credibility may be compromised
if the number is not first encrypted. It is impossible to tell who
may be listening in on your connection as you shop for new CDs or
books. The RSA encryption method often is used to hide your credit
card number from would-be thiefs on the Internet, because it uses a
public key to hide your information and a private key to reveal it.
This article banishes the mystery surrounding RSA encryption and
explains how a realistic implementation of RSA works in the OpenSSL
library. The only files you need to concern yourself with appear in
the openssl/crypto/bn and openssl/crypto/rsa subdirectories. Feel
free to download and take a look at the code to get a feel for it
before continuing.

“The best way to understand asymmetric encryption is to think of
a box that has two kinds of keys: one key locks it and the other
unlocks it. Anybody who has a copy of the locking key (aka public
key) can put a secret in the box. Because only you have the
unlocking key (aka private key), nobody else can reveal a secret
that someone else locked in the box. This is different from
symmetric key encryption, in which the same key is used for locking
and unlocking…”

Complete
Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.