This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
haas:fall2015:cprog:projects:sam0 [2015/10/29 12:21] – [Task] wedge | haas:fall2015:cprog:projects:sam0 [2015/10/29 12:26] (current) – [Sample execution: encode] wedge | ||
---|---|---|---|
Line 68: | Line 68: | ||
</ | </ | ||
+ | Without command-line nor cipher.key file: | ||
+ | <cli> | ||
+ | lab46: | ||
+ | ERROR: key not found | ||
+ | lab46: | ||
+ | </ | ||
+ | |||
+ | With 4 in the cipher.key file: | ||
+ | |||
+ | <cli> | ||
+ | lab46: | ||
+ | hello there | ||
+ | lipps xlivi | ||
+ | ^D | ||
+ | lab46: | ||
+ | </ | ||
+ | |||
+ | With 4 in the cipher.key file, decoding previous message: | ||
+ | |||
+ | <cli> | ||
+ | lab46: | ||
+ | lipps xlivi | ||
+ | hello there | ||
+ | ^D | ||
+ | lab46: | ||
+ | </ | ||
+ | |||
+ | Via positive command-line key, decoding: | ||
+ | |||
+ | <cli> | ||
+ | lab46: | ||
+ | jgnnq | ||
+ | hello | ||
+ | ^D | ||
+ | lab46: | ||
+ | </ | ||
+ | |||
+ | You can also save typing, by providing your input via a here string (also a nice way to check for EOF): | ||
+ | |||
+ | <cli> | ||
+ | lab46: | ||
+ | hello | ||
+ | lab46: | ||
+ | </ | ||
=====Submission===== | =====Submission===== | ||
To successfully complete this project, the following criteria must be met: | To successfully complete this project, the following criteria must be met: |