Exemplo n.º 1
0
        public void SetKeyringPath(string strPublicPath, string strSecretPath)
        {
            if (pkrKeyRing == null)
            {
                pkrKeyRing = new SharpPrivacyLib.PublicKeyRing();
            }

            if (skrKeyRing == null)
            {
                skrKeyRing = new SharpPrivacyLib.SecretKeyRing();
            }

            if (strPublicKeyringPath.ToUpper() != strPublicPath.ToUpper())
            {
                pkrKeyRing.Load(strPublicPath);
                strPublicKeyringPath = strPublicPath;
            }

            if (strSecretKeyringPath.ToLower() != strSecretPath.ToUpper())
            {
                skrKeyRing.Load(strSecretPath);
                strSecretKeyringPath = strSecretPath;
            }
        }
Exemplo n.º 2
0
        public void SetKeyringPath(string strPublicPath, string strSecretPath)
        {
            if (pkrKeyRing == null)
                pkrKeyRing = new SharpPrivacyLib.PublicKeyRing();

            if (skrKeyRing == null)
                skrKeyRing = new SharpPrivacyLib.SecretKeyRing();

            if (strPublicKeyringPath.ToUpper() != strPublicPath.ToUpper()) {
                pkrKeyRing.Load(strPublicPath);
                strPublicKeyringPath = strPublicPath;
            }

            if (strSecretKeyringPath.ToLower() != strSecretPath.ToUpper()) {
                skrKeyRing.Load(strSecretPath);
                strSecretKeyringPath = strSecretPath;
            }
        }