2018-11-21 08:59:26 +01:00
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
|
|
namespace Teknik.Configuration
|
2016-01-23 01:44:07 +01:00
|
|
|
|
{
|
|
|
|
|
public class PasteConfig
|
|
|
|
|
{
|
2016-01-29 00:24:12 +01:00
|
|
|
|
public bool Enabled { get; set; }
|
2016-01-23 01:44:07 +01:00
|
|
|
|
public int UrlLength { get; set; }
|
2018-11-21 08:59:26 +01:00
|
|
|
|
public int DeleteKeyLength { get; set; }
|
|
|
|
|
public string SyntaxVisualStyle { get; set; }
|
2016-01-23 01:44:07 +01:00
|
|
|
|
public int KeySize { get; set; }
|
|
|
|
|
public int BlockSize { get; set; }
|
2018-11-21 08:59:26 +01:00
|
|
|
|
// The size of the chunk that the file will be encrypted/decrypted in (bytes)
|
|
|
|
|
public int ChunkSize { get; set; }
|
2021-08-07 07:26:09 +02:00
|
|
|
|
// Storage settings
|
|
|
|
|
public StorageConfig StorageConfig { get; set; }
|
2016-01-23 01:44:07 +01:00
|
|
|
|
|
|
|
|
|
public PasteConfig()
|
|
|
|
|
{
|
2016-01-29 00:24:12 +01:00
|
|
|
|
Enabled = true;
|
2016-01-23 01:44:07 +01:00
|
|
|
|
UrlLength = 5;
|
2018-11-21 08:59:26 +01:00
|
|
|
|
DeleteKeyLength = 24;
|
2016-01-23 01:44:07 +01:00
|
|
|
|
KeySize = 256;
|
|
|
|
|
BlockSize = 128;
|
2018-11-21 08:59:26 +01:00
|
|
|
|
ChunkSize = 1040;
|
2016-10-21 01:50:35 +02:00
|
|
|
|
SyntaxVisualStyle = "vs";
|
2021-08-07 07:26:09 +02:00
|
|
|
|
StorageConfig = new StorageConfig("pastes");
|
2016-01-23 01:44:07 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|