It's UWAweek 20 (1st semester, week 11)

help3007

This forum is provided to promote discussion amongst students enrolled in CITS3007 Secure Coding. If posting a question, it's suggested you check first whether your question is answered in the unit Frequently Asked Questions (FAQ) list, and use the search box (on the right) to see if an answer to your question has already been posted.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

Note that any posts must comply with the UWA Code of Conduct and the UWA Academic Conduct Policy. That means you should (a) treat everyone with respect and courtesy, and (b) not post your solutions to an assessment that's in progress.

If asking a programming question, it's recommended you read How do I ask a good question? If reporting or troubleshooting a bug in software used in the unit, it's recommend you read How to report bugs effectively.
Displaying selected article
Showing 1 of 77 articles.
Currently no other people reading this forum.


 UWA week 19 (1st semester, week 10) ↓
SVG not supported

Login to reply

👍?
helpful
12:54pm Mon 6th May, Arran S.

Hi,

I'll amend the spec to clarify this: the key must fall in the "encryptable range" specified by range_low and range_high. For each letter of the plaintext which is to be encrypted, we work out an appropriate caesar cipher by subtracting low_range from the current letter of the keystream. So it probably wouldn't be ideal to allow key characters outside that range. (Though I guess one could just modulo them with the alphabet size, if one wanted an API like that.)

Whether they can have spaces or punctuation in them will depend entirely on what range has been specified by the caller.

Does that clarify things?

Cheers

Arran

ANONYMOUS wrote:

Hi,

Can the key for the Vigenere encrypt and decrypt functions have spaces or punctuation characters in it? Or does it have to be a stream of alphabets? The project spec doesn't mention anything about this..

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  5:07AM Sep 06 2023
Privacy policy