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.
Hi all,
In tomorrow's lecture, I'll aim to finish discussion of any topics I didn't get a chance to cover fully in previous lectures.
Other than that, it is an opportunity to ask questions about any topic you like related to the unit. So if there are q...
Hi Luke,
That doesn't sound right. Where do you see that stipulation? Can you please give the relevant part of the project specification? Also, can you clarify, what do you mean by "the program"? The specification doesn't ask you to submit a "program"...
For this assignment the stipulation is that if the program is detected to fail we abort it and return 1, the standard practice of saying that a program encountered an error. A lot has been said about the assert function which I'm wondering if we are...
Hi Hugo.
Well, where are you getting the requirement from that the Vigen re key shouldn't contain digits or characters outside the range? That might provide some clue as to how a violation needs to be handled.
Cheers
Arran
Hi Arran,
What should happen if the vigenere key contains digits or characters that are outside the range? Should a string like "abcd9" be rejected? What about "abcd "?
Thanks in advance
Hi,
Those questions explicitly state that markers will use them for allocating marks. So no, I don't suggest removing those from the total score.
Cheers
Arran
Hi,
No worries. To clarify just paste your implementations (including any documentation for cli ) into Moodle. As the header file itself says, it isn't to be submitted, so just include your documentation block for cli with the source. (It's common t...
Hi,
I'm afraid you'll have to work this out for yourself, at this point. I regard ambiguities or contradictions in the spec as already having been clarified (https cits3007.github.io faq how-are-problems-with-the-project-specification-resolved 3F)...
There was the final questions that were not required to have any input which for some reason had 8 marks allocated to it. Do we have to remove that from the total score to get our actual marks?
Hi,
Well, really it's up to you to apply your best understanding of appropriate software development principles, and decide this for yourself. But perhaps expand on your thinking here, a little bit - can you suggest reasons for or against calling cae...
Hi Siyu,
Questions do get re-used from year to year (sometimes with minor changes), so I've had to hide your post.
In this case, it looks like there was an error in the question I'll fix that, and adjust the marks of anyone who did that question. But ...
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...
Hi,
I assume you mean "the submission area", not "the test area".
It works by compiling your code using GCC, and then linking it against a "main.c" file which calls the implemented functions. If the code fails to compile or link, then that indicates th...
Forgive my confusion, but I'm just curious as to how our code and header file (assuming that this needs to be submitted due to the documentation requirement of cli() ) need to be submitted via Moodle.
Will there be two fields, one where we paste the C...
Hi all,
I've enable a "testbed" area in Moodle as well. It's no substitute for running your own tests (with sanitizers enabled, and at varying optimization levels), and if you rely on it solely, you may well miss errors in your code. But it's there fo...
I am having trouble understanding the caesar function. Consider this example
char t1 "ZZZ";
char t2 sizeof(t1) 0 ;
caesar encrypt('A', 'Z', 2, t1, t2);
Would the 'Z' wrap around so become 'B' or would it just go beyond the alphab...
Hi,
Are we allowed to call caesar-encrypt with a sign change for the key (ie negative to positive or positive to negative) within the caesar-decrypt function? This is my interpretation of "Calling it with some key n is exactly equivalent to calling ca...
Hi Arron,
how the test area works, I made mine into 2 files crypto.c main.c , also I provided make file
how I can test it now OR that's mean I should change all my work into only one c file ??