Esempio n. 1
0
 public PGPOptions()
 {
     CompressionAlgorithm  = ChoAppSettings.GetValue <CompressionAlgorithmTag>("CompressionAlgorithm", CompressionAlgorithmTag.Uncompressed, true);
     SymmetricKeyAlgorithm = ChoAppSettings.GetValue <SymmetricKeyAlgorithmTag>("SymmetricKeyAlgorithm", SymmetricKeyAlgorithmTag.TripleDes, true);
     PublicKeyAlgorithm    = ChoAppSettings.GetValue <PublicKeyAlgorithmTag>("PublicKeyAlgorithm", PublicKeyAlgorithmTag.RsaGeneral, true);
     PgpSignature          = ChoAppSettings.GetValue <PgpSignatureTag>("PgpSignature", PgpSignatureTag.DefaultCertification, true);
     PGPFileType           = ChoAppSettings.GetValue <ChoPGPFileType>("PGPFileType", ChoPGPFileType.Binary, true);
 }
Esempio n. 2
0
        public PGPGenerateKeyOptions()
        {
#if DEBUG
            PublicKeyFilePath  = @"Sample_pub1.asc";
            PrivateKeyFilePath = @"Sample_pri1.asc";
            Identity           = @"*****@*****.**";
            PassPhrase         = @"Test123";
#endif
            Strength  = ChoAppSettings.GetValue <int>("Strength", 1024, true);
            Certainty = ChoAppSettings.GetValue <int>("Certainty", 8, true);
        }
Esempio n. 3
0
        public PGPEncryptFileOptions()
        {
#if DEBUG
            InputFilePath      = @"SampleData.txt";
            OutputFilePath     = @"SampleData.pgp";
            PublicKeyFilePath  = @"Sample_pub.asc";
            PrivateKeyFilePath = @"Sample_pri.asc";
            PassPhrase         = @"Test123";
#endif
            Armor          = ChoAppSettings.GetValue <bool>("Armor", true, true);
            IntegrityCheck = ChoAppSettings.GetValue <bool>("IntegrityCheck", true, true);
        }