For cipher block chaining, what is needed for the first block of encryption? Electronic Codebook (ECB)...
2. Use the 3-bit block cipher in the table below to answer the following. Suppose the (a) Use the block cipher without cipher-block chaining (CBC) to encrypt the message (b) Suppose Trudy intercepts the ciphertext. Further suppose she knows that the text was plaintext is m 011011011. What is the resulting ciphertext? encrypted with a 3-bit block cipher without CBC, but she does not know the specific cipher. What can she determine about the original message? (c) Now use the...
What is the maximum number of different encryption functions of a block cipher over the alphabet {0,1} with block length n?
Task 3: Encryption Mode – ECB vs. CBC The file pic original.bmp can be downloaded from this lab’s website, and it contains a simple picture. We would like to encrypt this picture, so people without the encryption keys cannot know what is in the picture. Please encrypt the file using the ECB (Electronic Code Book) and CBC (Cipher Block Chaining) modes, and then do the following: 1. Let us treat the encrypted picture as a picture, and use a picture...
1. This project will extend Project 3 and move the encryption of a password to a user designed class. The program will contain two files one called Encryption.java and the second called EncrytionTester.java. 2. Generally for security reasons only the encrypted password is stored. This program will mimic that behavior as the clear text password will never be stored only the encrypted password. 3. The Encryption class: (Additionally See UML Class Diagram) a. Instance Variables i. Key – Integer...
Implement in Go language AES encryption mode CBC with providing the packages name for Go language. You can implement AES-ECB Mode (the basic AES) from crypto/aes package and crypto/cipher.Block. You can also get the SHA-256 hash function from crypto/sha256. You can get the secure random numbers generator from crypto/rand package. However, the you will implement both CBC mode and HMAC from scratch. You are NOT allowed to use any libraries or packages to implement these two things for you. You...