

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 4
click for more info
Not enough gems
Cost: 6 gems
1: Cryptography Is About Encryption
incomplete
2: What Is Cryptography?
incomplete
3: Symmetric vs. Asymmetric
incomplete
4: Symmetric vs. Asymmetric
incomplete
5: Better Keys
incomplete
6: Cryptology, Cryptography and Cryptanalysis
incomplete
7: Single-Use Keys
incomplete
8: Single-Use Keys Review
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
Keys are typically encoded in software as raw binary data. In Go, this means we usually use a slice of bytes as the data type. For example:
[]byte{0xAA, 0xBB}
0xAA and 0xBB are hexadecimal values, and hex is one of the more common ways to write raw binary in code. They represent the raw binary data 10101010 and 10111011 respectively.
Update the code so that it compiles and creates the cipher as intended. Here are the docs for aes.NewCipher()