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 903B

123456789101112131415161718192021222324252627282930
  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. public int KeySize { get; set; }
  11. public int BlockSize { get; set; }
  12. // The size of the chunk that the file will be encrypted/decrypted in (bytes)
  13. public int ChunkSize { get; set; }
  14. // Storage settings
  15. public StorageConfig StorageConfig { get; set; }
  16. public PasteConfig()
  17. {
  18. Enabled = true;
  19. UrlLength = 5;
  20. DeleteKeyLength = 24;
  21. KeySize = 256;
  22. BlockSize = 128;
  23. ChunkSize = 1040;
  24. SyntaxVisualStyle = "vs";
  25. StorageConfig = new StorageConfig("pastes");
  26. }
  27. }
  28. }