Exemplo n.º 1
0
 /// <summary>
 /// 初始化短信配置提供器
 /// </summary>
 /// <param name="config"></param>
 public SmsConfigProvider(SmsConfig config)
 {
     _config = config;
 }
Exemplo n.º 2
0
        /// <summary>
        /// 获取加密数据
        /// </summary>
        /// <param name="seed">时间</param>
        /// <param name="config">配置项</param>
        /// <returns></returns>
        private string GetKey(string seed, SmsConfig config)
        {
            var key = Encrypt.Md5By32(config.PassWrod).ToLower();

            return(Encrypt.Md5By32(key + seed).ToLower());
        }