Ejemplo n.º 1
0
        public void End()
        {
            pkcs       = null;
            publicKey  = "";
            privateKey = "";
            privatePwd = "";

            stringToTest = "";
        }
Ejemplo n.º 2
0
        public void Begin()
        {
            pkcs                = new pkcs7Helper();
            publicKey           = Path.Combine(Directory.GetCurrentDirectory(), "certs", "merchant.crt");
            privateKey          = Path.Combine(Directory.GetCurrentDirectory(), "certs", "merchant.pfx");
            privateKeyFileBytes = Convert.ToBase64String(System.IO.File.ReadAllBytes(Path.Combine(Directory.GetCurrentDirectory(), "certs", "merchant.pfx")));
            privatePwd          = "ToP$3c4et";

            stringToTest = "Hello, 2C2P!";
        }