It's UWAweek 47

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 the 2 articles in this topic
Showing 2 of 170 articles.
Currently 38 other people reading this forum.


 UWA week 21 (1st semester, week 12) ↓
SVG not supported

Login to reply

👍?
helpful
10:37pm Mon 20th May, ANONYMOUS

Hi Arran, In the project spec it says the following: We will first implement the Caesar cipher (functions caesar_encrypt and caesar_decrypt), and then make use of those functions to implement the Vigenere cipher. I want to know whether the caesar_encrypt and caesar_decrypt functions need to be explicitly called within our vigenere_encrypt and vigenere_decrypt functions, or if we are just supposed to apply the logic of the Caesar cipher in the Vigenere cipher functions without directly calling the Caesar functions? Thanks


SVG not supported

Login to reply

👍x2
helpful
1:17pm Tue 21st May, Arran S.

Hi,

They don't need to be explicitly called, no. (You can if you want, but tbh it makes the code rather awkward.) The intent is just for you to make use of the logic you came up with while implementing the Caesar functions – my apologies, the spec could be clearer on that point. You could if you liked split out the 'Caesar' bit of the Vigenere implementation into a separate 'helper' function if you like, but really, it should only come to a line or two of code so probably isn't worth it.

I hope that helps! Let me know if anything is not clear.

Cheers,

Arran

ANONYMOUS wrote:

Hi Arran,

In the project spec it says the following: We will first implement the Caesar cipher (functions caesar_encrypt and caesar_decrypt), and then make use of those functions to implement the Vigenere cipher.

I want to know whether the caesar_encrypt and caesar_decrypt functions need to be explicitly called within our vigenere_encrypt and vigenere_decrypt functions, or if we are just supposed to apply the logic of the Caesar cipher in the Vigenere cipher functions without directly calling the Caesar functions?

Thanks

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  8:08AM Aug 25 2024
Privacy policy