We have the following encryption algorithm: XOR with the HEX key BC, rotate 4 places to the left, and XOR with the HEX key AA. Show your work for full marks.
a. If we start with the bit pattern represented by the HEX number ACE1, what would the HEX number be that represents the encrypted bit pattern?
b. Assume that we have intercepted a message that was encoded using the same algorithm. The encoded message as a HEX number was D007. What was the original message as a HEX number?
Encryption algorithm
Decryption algorithm
a. If we start with the bit pattern represented by the HEX number ACE1, what would the HEX number be that represents the encrypted bit pattern?
Plaintext = ACE1
Encryption
Step 1: ACE1 XOR BCBC (Key is repeated twice to match the length)
= 1010 1100 1110 0001 XOR 1011 1011 1100 1100
= 0001 0111 0010 1101 => 172D
Step 2: Rotate 0001 0111 0010 1101 4 places left
= 0111 0010 1101 0001 => 72D1
Step 3: 72D1 XOR AAAA (Key is repeated twice to match the length)
= 0111 0010 1101 0001 XOR 1010 1010 1010 1010
= 1101 1000 0111 1011 => D87B
Ciphertext = D87B
b. Assume that we have intercepted a message that was encoded using the same algorithm. The encoded message as a HEX number was D007. What was the original message as a HEX number?
Ciphertext = D007
Decryption
Step 1: D007 XOR AAAA (Key is repeated twice to match the length)
= 1101 0000 0000 0111 XOR 1010 1010 1010 1010
= 0111 1010 1010 1101 => 7AAD
Step 2: Rotate 0111 1010 1010 1101 4 places right
= 1101 0111 1010 1010 => D7AA
Step 3: D7AA XOR BCBC (Key is repeated twice to match the length)
= 1101 0111 1010 1010 XOR 1011 1011 1100 1100
= 0110 1100 0110 0110 => 6C66
Plaintext = 6C66
We have the following encryption algorithm: XOR with the HEX key BC, rotate 4 places to...
3. We have the following encryption algorithm: XOR with the HEX key AA, rotate 4 places to the right, and XOR with the HEX key BC. Show your work for full marks. a. If we start with the bit pattern represented by the HEX number ACE1, what would the HEX number be that represents the encrypted bit pattern? b. Assume that we have intercepted a message that was encoded using the same algorithm. The encoded message as a HEX number...
2.Consider the following credit card numbers and tell me if they are valid or not. If a number is invalid, write the valid credit number by changing the “check” digit. Show your work for full marks. a. 4519 6731 6055 4166 b. 4515 1663 4722 3333 c. How many valid (according to the Luhn check) 16-digit credit card numbers are there that start with these 14 digits 4444 4444 4444 45? Give one of the valid credit card numbers. 3....
We have intercepted a message that we need to decode. Luckily, we know that they use the letters A to Z, space, 0 to 9. We also know that when they encode messages they start by shifting the first letter once to the left, then shift the next two letters right twice, then the next three letters left 3 times, then the next four letters right 4 times, the next five letters left 5 times, and so on. a. If...
We have intercepted a message that we need to decode. Luckily, we know that they use the letters A to Z, space, 0 to 9. We also know that when they encode messages they start by shifting the first letter once to the right, then shift the next two letters left twice, then the next three letters right 3 times, then the next four letters left 4 times, the next five letters right 5 times, and so on. a. If...
The Diffie-Hellman public-key encryption algorithm is an alternative key exchange algorithm that is used by protocols such as IPSec for communicating parties to agree on a shared key. The DH algorithm makes use of a large prime number p and another large number, g that is less than p. Both p and g are made public (so that an attacker would know them). In DH, Alice and Bob each independently choose secret keys, ?? and ??, respectively. Alice then computes...
Write a program that implements an elementary bit stream cipher. An elementary level bit stream cipher is an encryption algorithm that encrypts 1 byte of plain text at a time. This one uses a given 4-bit bit pattern as the key. The size of the encrypted message that we want to be able to send has a maximum length of 200 characters. You must: 1. prompt the user to input the clear text to be encrypted. You must use printf()...
Background: For this assignment, you will write a small encryption utility that implements a simple encryption algorithm described below. The program will take one command line argument as an input; this will represent the word which is to be encrypted. As an output, your program will print the encrypted version of the word to the console using a simple printf() statement. This is the only output your program needs to produce. There is an important catch, however: your program is...
"For two thousand years, codemakers have fought to preserve secrets while codebreakers have tried their best to reveal them." - taken from Code Book, The Evolution of Secrecy from Mary, Queen of Scots to Quantum Cryptography by Simon Singh.The idea for this machine problem came from this book.You will encrypt and decrypt some messages using a simplified version of a code in the book. The convention in cryptography is to write the plain text in lower case letters and the encrypted text in upper case...
****************************************************************************************************************8
I want it same as the output and with details please and
comments
"For two thousand years, codemakers have fought to preserve
secrets while codebreakers have tried their best to reveal them." -
taken from Code Book, The Evolution of Secrecy from Mary, Queen of
Scots to Quantum Cryptography by Simon Singh.
The idea for this machine problem came from this book.You will
encrypt and decrypt some messages using a simplified version of a
code in the book. The...
JAVA PROJECT Part 1 - Normalize Text The first thing we will do is normalize the input message so that it’s easier to work with. Write a method called normalizeText which does the following: Removes all the spaces from your text Remove any punctuation (. , : ; ’ ” ! ? ( ) ) Turn all lower-case letters into upper-case letters Return the result. The call normalizeText(“This is some \“really\” great. (Text)!?”) should return “THISISSOMEREALLYGREATTEXT” Part 2 - Obfuscation...