34. Symmetric Example [ Encode_Hex( Cipher_Encrypt('Data', -Cipher='CAST5-CBC', -Key='supersecretpassword') ); '<br>'; Cipher_Decrypt( Decode_Hex('D7BF2BE2EA29D2C9'), -Cipher='CAST5-CBC', -Key='supersecretpassword' ); ] LP8: D7BF2BE2EA29D2C9 Data
35.
36. Encrypt with public key to send over insecure channel that only can be decrypted with the private key
37. Encrypt with the private key, the public key can decrypt to verify the authenticity of the signer
38.
39. Asymmetric Example Currently in Lasso, you would need to use [os_process] to use PGP or similar command-line tool to sign/encrypt using public/private keys.
72. CarTalk: The Puzzler 2007-12-17 Imagine you have a friend who lives in Russia where the KGB spies on everyone and everything and you want to send a valuable object to this friend. So you have a box which is more than large enough to contain the object and you have several locks with keys. Now this box, I suppose you could call it a strongbox, has a lock ring which is more than large enough to have a padlock attached to it. In fact it's large enough to accommodate several locks. But your friend does not have to the key to any lock that you have. Now you can't send a key in the mail because the KGB will intercept it and they will copy it. And you can't not lock the box, because the object is very valuable. So you have to send it through the mail. You can't hand deliver it. You want to lock it so that your friend can open it, but the KGB can't. The question is, how would you do it? From: http://www.cartalk.com/content/puzzler/transcripts/200750/
73. CarTalk: The Puzzler Answer 2007-12-17 RAY: So the question is how do you package your valuable objects so that the KGB cannot open it, but your friend can? Now instead of a key, I would have mailed a hacksaw. But in the spirit of the puzzler that wouldn't have been fair. TOM: Sure. RAY: You put the valuable thing in the box. You put as many locks as you want on the clasp, making sure you leave room for at least one more. TOM: Yeah. RAY: You mail the thing to Russia. Your friend gets it. He doesn't have a key to any of these locks that you put on it. He puts another lock on it for which he has the key. He mails it back to you. You remove all of your locks and you can't get it open now. But you don't have to. TOM: He can. RAY: When you mail it back to him. From: http://www.cartalk.com/content/puzzler/transcripts/200750/answer.html