-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpresentation.slide
56 lines (33 loc) · 1.27 KB
/
presentation.slide
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Envelope Encryption
What ? How ? Why ?
6 Sep 2018
Tags: envelope-encryption, go, kms
Prasanna V
---
*Source*code:* _https://github.com/worldofprasanna/envelope-encryption-talk_
* How secure is this ?
.image images/encryption-1.png _ 700
*Problems*
- How to protect the encryption key ?
- What if the key is stolen ?
* Envelope encryption to the rescue
.image images/rescue.gif _ 700
* Envelope encryption using AWS KMS
.image images/envelope-encryption.png _ 700
* Demo time !!!
*Encrypt*Message*
.play -edit src/sources/encrypt_data.go /ENCRYPT_STRING_START_OMIT/,/ENCRYPT_STRING_END_OMIT/
*Decrypt*Message*
.play -edit src/sources/decrypt_data.go /DECRYPT_STRING_START_OMIT/,/DECRYPT_STRING_END_OMIT/
* Encryption - Explanation
*KMS*Initialization*
.code src/sources/encrypt_data.go /KMS_INIT_START_OMIT/,/KMS_INIT_END_OMIT/
*Generate*Data*Key*from*CMK*
.code src/sources/encrypt_data.go /CREATE_DATA_KEY_START_OMIT/,/CREATE_DATA_KEY_END_OMIT/
*Encrypt*Message*
.code src/sources/encrypt_data.go /ENCRYPT_START_OMIT/,/ENCRYPT_END_OMIT/
* Decryption - Explanation
*Decrypt*Data*Key*
.code src/sources/decrypt_data.go /GET_DECRYPT_DATAKEY_START_OMIT/,/GET_DECRYPT_DATAKEY_END_OMIT/
*Decrypt*CipherText*
.code src/sources/decrypt_data.go /DECRYPT_START_OMIT/,/DECRYPT_END_OMIT/