Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace Signer
- {
- /// <summary>
- /// Contains main informations.
- /// Changing values may cause
- /// seperate netwokrs to be built
- /// or your machine to be lit on fire.
- /// </summary>
- public static class Base
- {
- /// <summary>
- /// Client version string.
- /// Can be changed to whatever you like
- /// </summary>
- public const string VERSION = "Signer/1.0.0.0 C# .NET-2.0";
- /// <summary>
- /// Size in bits of the keys for asymetric encryption.
- /// Must be supported by the chosen algorithm
- /// </summary>
- public const int ASYM_KEYSIZE = 1024 * 4;
- /// <summary>
- /// allowed chars for a password.
- /// Can be changed
- /// </summary>
- public const string SYM_PWDMAP = "!,.-;:_@#|¦¢abcdefghijklmnopqrstuvwxyzéàèöäüÄÖÜÀÉÈABCDEFGHIJKLMNOPQRSTUVWXYZ[]{}()<>0123456789=/&%ç*\"+\\?'~^`´¨";
- /// <summary>
- /// Size of a RSA block for encryption/decryption.
- /// probably breaks everything if changed
- /// </summary>
- public const int ASYM_RSASIZE = 512;
- /// <summary>
- /// Size of the IV for Rijndael method.
- /// Must be supported by the encryption algorithm
- /// </summary>
- public const int SYM_IV = 16;
- /// <summary>
- /// Size of the Password for Rijndael method.
- /// Must be supported by the encryption algorithm
- /// </summary>
- public const int SYM_PW = 32;
- /// <summary>
- /// Hash type for content
- /// </summary>
- public const HashType CRYPT_HASH = HashType.SHA512;
- /// <summary>
- /// hash type for addresses
- /// </summary>
- public const HashType ADDR_HASH = HashType.SHA1;
- /// <summary>
- /// Default password for pfx file if not specified by the user
- /// can be changed, but the pfx file must be deleted if it exists.
- /// </summary>
- public const string CERT_PWD = "Change!MeS0metim35";
- /// <summary>
- /// Issuer for the certificate.
- /// Can be changed to any valid ASN notation for the issuer
- /// </summary>
- public const string CERT_ISSUER = "C=CH, ST=NA, L=NA, O=NA, OU=NA, CN=Signer";
- /// <summary>
- /// File for local server certificate
- /// </summary>
- public const string CERT_FILE = "local.pfx";
- /// <summary>
- /// Maximum Age (in seconds) of a message
- /// </summary>
- public const int AGE_MSG = 60 * 60 * 24 * 10; //10 days
- /// <summary>
- /// Maximum Age (in seconds) of a public key
- /// </summary>
- public const int AGE_PUBKEY = 60 * 60 * 24 * 50;
- /// <summary>
- /// Maximum Age (in seconds) of an IP entry
- /// </summary>
- public const int AGE_IP = 60 * 60 * 24 * 1; //1 day
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement