-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathencrypt.proto
59 lines (50 loc) · 1.15 KB
/
encrypt.proto
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
56
57
58
59
syntax="proto3";
package kript.api;
message Secret {
message Password {
string url = 1;
string password = 2;
string username = 3;
}
message Code {
enum Type {
UNKNOWN_CODE_TYPE = 0;
BANK_ACCOUNT_NUMBER = 1;
SOCIAL_SECURITY_NUMBER = 2;
}
string code = 1;
Type type = 2;
string description = 3;
}
message Note {
string text = 1;
}
message CreditCard {
string number = 1;
string name = 2;
uint32 expiration_month = 3;
uint32 expiration_year = 4;
string description = 5;
}
oneof secret {
Password password = 1;
Code code = 2;
Note note = 3;
CreditCard credit_card = 4;
}
}
// A Secret object that has been encrypted.
message ESecret {
// The Secret object ecnrypted, using protobuf encoding.
bytes data = 1;
}
// A byte string that has been encrypted.
message EBytes {
// The byte string encrypted.
bytes data = 1;
}
// A string that has been hashed.
message HString {
// The string hashed, using utf-8 encoding.
bytes data = 1;
}