Windows Phone 引导页和密码加密
来源:互联网 发布:unity3d 录屏 编辑:程序博客网 时间:2024/06/05 03:47
public MyLoginControl() { InitializeComponent(); } public string UserName { get { return this.user.Text; } } public string PassWord { get { return this.jiami(this.pass.Password); } } private string jiami(string pass){ if(string.IsNullOrEmpty(pass)){ return string.Empty; } System.Security.Cryptography.HMACSHA1 hm = new System.Security.Cryptography.HMACSHA1(); byte[] buffer = System.Text.Encoding.UTF8.GetBytes(pass); byte[] result = hm.ComputeHash(buffer); string resStr = ""; foreach(byte b in result){ resStr += b.ToString("x"); } return resStr; } private void user_TextChanged(object sender, TextChangedEventArgs e) { } private void Button_Click(object sender, RoutedEventArgs e) { string temp; temp = "用户名" + login.user + "\n密码" + login.PassWord; this.text.Text = temp; }
0 0
- Windows Phone 引导页和密码加密
- 在Windows Phone中实现MD5加密
- Windows Phone应用程序中加密解密数据
- Windows Phone开发(4):框架和页
- Windows Phone开发(4):框架和页
- Windows phone 8和Windows RT 区别
- MD5密码加密和验证
- shiro 密码加密和解密
- MySQL修改密码和加密
- BCrypt 密码加密和解密
- Windows Phone开发之客户端本地简单填充加密解密
- windows phone开发之客户端本地简单填充加密解密
- windows phone 使用启动器和选择器Microsoft.Phone.Tasks
- 实现记住用户名和密码(加了一个引导页)
- Windows Phone 7开发工具和资源
- Windows Phone 7 开发工具和资源
- Tip: Windows Phone - 匿名类型和 MethodAccessException
- Windows Phone 8发布会亮点和吐槽点
- 分形图形 --- 龙形曲线
- RTS需求设计
- 用Python和Pygame写游戏-从入门到精通(13)
- Remove Nth Node From End of List
- Could not open JDBC Connection for transaction; nested exception is org.apache.commons.dbcp.SQLNest
- Windows Phone 引导页和密码加密
- gdb查看内存地址和栈中的值
- StackOverflow 并不只是一个问答网站
- Android单点触控技术 旋转 平移 缩放等
- SSH原理与运用(一):远程登录
- 2、设计包含min函数的栈
- JSON解析——图解
- int与long 两种数据类型有什么区别?|__int64固定大小为8字节,不受运行环境(的CPU和操作系统位数)影响
- Linux学习-shell脚本编程基础(节选)