コード例 #1
0
ファイル: UwAlg.cs プロジェクト: burstas/rmps
        public void Init(MSec mSec)
        {
            _MSec = mSec;
            _DefAlg = new Items { K = "", V = "默认" };
            _DefMod = new Items { K = "", V = "默认" };
            _DefPad = new Items { K = "", V = "默认" };
            _DefLen = new Items { K = "", V = "默认" };

            switch (_MSec.Operation)
            {
                case ESec.OPT_CONFUSE:
                    ShowConfuse();
                    break;
                case ESec.OPT_WRAPPER:
                    ShowWrapper();
                    break;
                case ESec.OPT_DIGEST:
                    ShowDigest();
                    break;
                case ESec.OPT_SCRYPTO:
                    ShowScrypto();
                    break;
                case ESec.OPT_SSTREAM:
                    ShowSstream();
                    break;
                case ESec.OPT_ACRYPTO:
                    ShowAcrypto();
                    break;
            }
        }
コード例 #2
0
ファイル: AWiz.cs プロジェクト: burstas/rmps
        public void InitOnce()
        {
            _MSec = new MSec();

            CbOpt.Items.Add(new Items { K = ESec.OPT_CONFUSE, V = "混淆算法" });
            CbOpt.Items.Add(new Items { K = ESec.OPT_WRAPPER, V = "掩码算法" });
            CbOpt.Items.Add(new Items { K = ESec.OPT_DIGEST, V = "摘要算法" });
            CbOpt.Items.Add(new Items { K = ESec.OPT_SCRYPTO, V = "块对称算法" });
            CbOpt.Items.Add(new Items { K = ESec.OPT_SSTREAM, V = "流对称算法" });
            CbOpt.Items.Add(new Items { K = ESec.OPT_ACRYPTO, V = "非对称算法" });
            CbOpt.SelectedIndex = 0;

            _ASec.ShowTips(PbAlg, "算法选项");

            _ASec.ShowTips(PbKey, "口令选项");

            SbDir.On = true;
            _ASec.ShowTips(SbDir, "加密/解密");

            SetKeyVisible(false);
        }