The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PasteConfig.cs 1.0KB

123456789101112131415161718192021222324252627282930313233
  1. using System.IO;
  2. namespace Teknik.Configuration
  3. {
  4. public class PasteConfig
  5. {
  6. public bool Enabled { get; set; }
  7. public int UrlLength { get; set; }
  8. public int DeleteKeyLength { get; set; }
  9. public string SyntaxVisualStyle { get; set; }
  10. // Location of the upload directory
  11. public string PasteDirectory { get; set; }
  12. // File Extension for saved files
  13. public string FileExtension { get; set; }
  14. public int KeySize { get; set; }
  15. public int BlockSize { get; set; }
  16. // The size of the chunk that the file will be encrypted/decrypted in (bytes)
  17. public int ChunkSize { get; set; }
  18. public PasteConfig()
  19. {
  20. Enabled = true;
  21. UrlLength = 5;
  22. DeleteKeyLength = 24;
  23. KeySize = 256;
  24. BlockSize = 128;
  25. ChunkSize = 1040;
  26. PasteDirectory = Directory.GetCurrentDirectory();
  27. FileExtension = "enc";
  28. SyntaxVisualStyle = "vs";
  29. }
  30. }
  31. }