Special

Clearance Sale!

We've been publishing for over five years now and it's time to clear out our inventory of back issues, so we're slashing prices!

RBD Magazines

Check out this amazing clearance sale of all our past issues. Missing some issues? This is a great time to complete your RBD collection. Save up to 40% off the regular price of our printed back issue packages. These prices are only good until the end of the year May 2008 and supplies are limited, so place your order today.

Article Preview


Buy Now

Print:
PDF:

Feature

REALSecure

Random Number Encryption

Issue: 5.4 (May/June 2007)
Author: JC Cruz
Article Description: No description available.
Article Length (in bytes): 22,434
Starting Page Number: 21
RBD Number: 5411
Resource File(s):

Download Icon 5411.zip Updated: Saturday, July 28, 2007 at 12:08 AM

Related Web Link(s):

http://en.wikipedia.org/wiki/Linear_feedback_shift_register
http://en.wikipedia.org/wiki/Cipher
http://en.wikipedia.org/wiki/Stream_cipher

Known Limitations: None

Excerpt of article text...

Today, we will learn how to use a random number generator as the basis of a cipher system. We will also learn more about the LFSR generator, and how to make it non-linear. We will then build a basic Vernam cipher using the modified LFSR generator and REALbasic.

A Brief Primer on Cryptography

The field of cryptography is the study of cipher systems. A cipher system allows the secure exchange of data in the presence of adversaries. In a well-designed system, only the intended receiver will be able to read the secured data.

Figure 1 shows a basic cipher system in action. The sender first enters the original data, or plaintext, into a cipher function. She then enters a second piece of data, the key, into the same function. The cipher function combines the two data streams and outputs the results as the ciphertext. This step is known as encryption.

The sender then sends the ciphertext to the receiver. The receiver feeds the ciphertext into the same cipher function. He also enters a key into the function. The cipher function combines the ciphertext and key, and gives the original plaintext as a result (Figure 2). This step is known as decryption.

...End of Excerpt. Please purchase the magazine to read the full article.

Article copyrighted by REALbasic Developer magazine. All rights reserved.


 


|

 


Weblog Commenting and Trackback by HaloScan.com