コード例 #1
0
        public Auth_Token Login([FromBody] Login dataModel)
        {
            string strAES256Enc = AES.AES_encrypt(dataModel.strUserID
                                                  + "|" + dataModel.strUserPW
                                                  + "|" + DateTime.Now.AddHours(1).ToString()
                                                  , _GlobalValues.EncryptKey);

            var result = new Auth_Token();

            result.strHeader = "ReToken";
            result.strToken  = strAES256Enc;

            return(result);
        }