27.08.2015 Views

Advanced Bash−Scripting Guide

Advanced Bash-Scripting Guide - Nicku.org

Advanced Bash-Scripting Guide - Nicku.org

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Advanced</strong> <strong>Bash−Scripting</strong> <strong>Guide</strong><br />

and #2 (move in opposite direction for substitution). Under case #3,<br />

just take the remaining two corners of the rectangle.<br />

Helen Fouche Gaines' classic work, "Elementary Cryptoanalysis" (1939), gives a<br />

fairly detailed rundown on the Playfair Cipher and its solution methods.<br />

This script will have three main sections<br />

I. Generating the "key square", based on a user−input keyword.<br />

II. Encrypting a "plaintext" message.<br />

III. Decrypting encrypted text.<br />

The script will make extensive use of arrays and functions.<br />

−−<br />

Please do not send the author your solutions to these exercises. There are better ways to impress him with<br />

your cleverness, such as submitting bugfixes and suggestions for improving this book.<br />

Appendix I. Exercises 439

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!