예제 #1
0
파일: Cm.cs 프로젝트: burstas/rmps
 public void InitOpt(string opt)
 {
     switch (opt)
     {
         case ESec.OPT_DIGEST:
             _Acm = _Digest;
             break;
         case ESec.OPT_RANDKEY:
             _Acm = _RandKey;
             break;
         case ESec.OPT_WRAPPER:
             _Acm = _Wrapper;
             break;
         case ESec.OPT_CONFUSE:
             _Acm = _Confuse;
             break;
         case ESec.OPT_SCRYPTO:
             _Acm = _Scrypto;
             break;
         case ESec.OPT_SSTREAM:
             _Acm = _Sstream;
             break;
         case ESec.OPT_ACRYPTO:
             _Acm = _Acrypto;
             break;
         case ESec.OPT_TXT2IMG:
             _Acm = _Txt2Img;
             break;
         default:
             _Acm = _Default;
             break;
     }
     _Acm.InitOpt();
 }
예제 #2
0
파일: Cm.cs 프로젝트: burstas/rmps
        public void Init()
        {
            _Default = new Default(_APro, this);
            _Digest = new Digest(_APro, this);
            _RandKey = new RandKey(_APro, this);
            _Wrapper = new Wrapper(_APro, this);
            _Confuse = new Confuse(_APro, this);
            _Scrypto = new Scrypto(_APro, this);
            _Sstream = new Sstream(_APro, this);
            _Acrypto = new Acrypto(_APro, this);
            _Txt2Img = new Txt2Img(_APro, this);

            _Acm = _Default;

            CbPads.Items.Add(ACm._SizeDef);
            CbPads.SelectedIndex = 0;

            CbMode.Items.Add(ACm._ModeDef);
            CbMode.SelectedIndex = 0;

            CbName.Items.Add(ACm._NameDef);
            CbName.SelectedIndex = 0;
        }