public SharePasswordController()
        {
            _repository = new PasswordJsonRepository(System.Web.HttpContext.Current);



            if (System.Web.HttpContext.Current.Session["rsa"] == null)
            {
                _rsaCrypto = new RSACrypto();
                System.Web.HttpContext.Current.Session["rsa"] = _rsaCrypto;
            }
            else
            {
                _rsaCrypto = (RSACrypto)System.Web.HttpContext.Current.Session["rsa"];

            }
        }
예제 #2
0
        public void Init()
        {
            rsaCrypto = new RSACrypto(104729, 104723);

        }