Playfair cipher: Difference between revisions

Content added Content deleted
m (→‎{{header|REXX}}: added a link to CHANGESTR.REX for use by older REXXes. -- ~~~~)
m (→‎{{header|REXX}}: adjusted REXX program for the case of no arg before the ( not followed by a blank. -- ~~~~)
Line 365:
<br>Also added a a fair amount of code to massage the decrypted encryption to remove doubled &nbsp; '''X'''es &nbsp; so as to match the original text.
<lang rexx>/*REXX program implements a PLAYFAIR cipher (encryption & decryption).*/
parse arg key . 1 oldK omit _ . '(' text; /*TEXT is the phrase to be used. */ oldK=key
if key =='' | key ==',' then do; key='Playfair example.'; oldK=key " ◄───using the default."; end
if omit=='' | omit==',' then omit='J' /*the "omitted" character. */