Skip to content

Commit

Permalink
Update 11.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyCYao authored and emilbayes committed Aug 13, 2018
1 parent 6bb44da commit 423e8fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion problems/11.md
Expand Up @@ -4,7 +4,7 @@ Now that we know about encryption we are ready to make our bank's transaction lo

## Problem

What we want to is similar to when we added digital signatures. Generate a new encryption if one hasn't already be been generated. Then everytime we save the transaction log to disk encrypt it using the `secret_box` primitive. Remember to generate a new nonce every time you encrypt it and that you don't have to keep the nonce secret, it is perfectly safe to save this together with the cipher text.
What we want to is similar to when we added digital signatures. Generate a new encryption if one hasn't already been generated. Then everytime we save the transaction log to disk encrypt it using the `secret_box` primitive. Remember to generate a new nonce every time you encrypt it and that you don't have to keep the nonce secret, it is perfectly safe to save this together with the cipher text.

Then when the bank is starting up, read the transaction log from disk and decrypt it.

Expand Down

0 comments on commit 423e8fc

Please sign in to comment.