(a) Use simple XOR hash algorithm described above to calculate a hex value of the 16-bit hash for the given plaintext:
Do you want me to sit in a corner and rust, or just fall apart where I'm standing?
Note: Take into account ASCII codes for ‘space’ characters, upper-case letter, and punctuation.
(b) Try to produce a binary sequence of an arbitrary length, padded if necessary with zeros to obtain message of the length 16k for some k, such that it has the same hash as the message, i.e. produce the weak collision. Explain what methods and tools did you use to solve the task. In case that you wrote the program, please submit the source code.
(c) If you receive the message:
It is an important and popular fact that things are not always what they seem.
together with the XOR hash 7729 (hex), would you say that it is a valid message?
These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.Part a)
We used the below web resource to convert the given message into its binary equivalent (ASCII).
Then we split the result into blocks of 16 bits as below:
In the end we have XOR-ed the groups from above using the provided hashing algorithm and we have obtained 0100 0110 0101 0000, which corresponds to 4650 in hex....
By purchasing this solution you'll be able to access the following files: