aboutsummaryrefslogtreecommitdiffstats
path: root/content/register_docs.md
diff options
context:
space:
mode:
Diffstat (limited to 'content/register_docs.md')
-rw-r--r--content/register_docs.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/register_docs.md b/content/register_docs.md
index 45938e3..9f5596e 100644
--- a/content/register_docs.md
+++ b/content/register_docs.md
@@ -25,7 +25,7 @@ This is enforced with your Student ID (e123456) and a one time password you rece
25> Since we are working with AES-128, both key and IV should be 128 bits (or 32 hexadecimal characters) 25> Since we are working with AES-128, both key and IV should be 128 bits (or 32 hexadecimal characters)
26 26
27- Pick a short temporary key (`k_temp`) 27- Pick a short temporary key (`k_temp`)
28- Pick a random IV ([1](https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation#Initialization_vector_(IV))) ([2](https://en.wikipedia.org/wiki/Initialization_vector) (`iv`)). 28- Pick a random IV `iv` ([1](https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation#Initialization_vector_(IV))) ([2](https://en.wikipedia.org/wiki/Initialization_vector)).
29 29
30## Encryption 30## Encryption
31- Encrypt the serialized string of `P_AR` with 128 bit block [AES](https://en.wikipedia.org/wiki/Initialization_vector) in [CBC](https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation#CBC) mode with [Pkcs7 padding](https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation#Padding) using the temporary key (`k_temp`), the result is `C_AR`. Encode this with base64. 31- Encrypt the serialized string of `P_AR` with 128 bit block [AES](https://en.wikipedia.org/wiki/Initialization_vector) in [CBC](https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation#CBC) mode with [Pkcs7 padding](https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation#Padding) using the temporary key (`k_temp`), the result is `C_AR`. Encode this with base64.