交通灯状态转换: (其中黄灯会进行闪烁) #include <msp430.h> typedef unsigned char uchar; typedef unsigned int uint; const uchar STATES[4] = { 0xCC, 0xD4, 0x78, 0xAC }; v ...
分类:
其他好文 时间:
2020-07-27 16:03:34
阅读次数:
98
JWT的引入 传统登录认证流程: 1. 用户第一次登录时, 生成一个token并返回给前台, 同时将其与用户主键一同存在后台服务器上(数据库或缓存中)2. 下一次访问需要登录的页面时, 将token一起传入3. 后台拿着token去数据库或缓存中查找是否存在该token, 存在则认证通过, 否则认证 ...
分类:
编程语言 时间:
2020-07-26 00:07:38
阅读次数:
75
Play-Book playbook的组成 play 角色(主机或者主机组) task 任务,演戏的动作 总结:playbook是有多个play组成,一个play有多个task;剧本由一个或者多个演员组成,一个演员得有多个台词或者动作。 playbook的语法格式:yaml 在Ansible中"剧本 ...
分类:
其他好文 时间:
2020-07-24 23:43:20
阅读次数:
178
本期介绍随机数在密码学中生成Salt的用法。在密码学中,Salt是指将特定(固定)字符串插入到明文固定位置,让Hash散列运算值不同于使用原始明文的散列值。HASH散列运算是公开算法,只要有相同的明文,任何人都能算出相同的摘要值。Salt的意义在于让只有掌握正确Salt数据的用户才能计算出正确的HASH散列值。在某种意义上,Salt对于HASH运算的意义,就相当于密钥对于3DES等对称算法的意义。
分类:
其他好文 时间:
2020-07-24 19:11:38
阅读次数:
71
{ dataIndex: 'state', title: formatMessage({ id: 'approval.status', defaultMessage: '审批状态' }), render:state=> { const obj = APPROVAL_STATES.find(o => ...
分类:
其他好文 时间:
2020-07-24 19:06:27
阅读次数:
74
主要代码: 1 // 盐值 2 String salt = null; 3 String password = user.getPassword(); 4 //加密密码 5 String encryptPassword = null; 6 7 salt = SaltUtil.generateSalt ...
分类:
其他好文 时间:
2020-07-24 16:30:16
阅读次数:
136
Penetration Test - Planning and Scoping(6) LEGAL CONCEPTS Statement of Work(SOW) Clearly states what tasks are to be accomplished Master Service Agree ...
分类:
Web程序 时间:
2020-07-21 01:05:18
阅读次数:
99
原题目: Debug celsius converter Your friend is traveling abroad to the United States so he wrote a program to convert fahrenheit to celsius. Unfortunatel ...
分类:
其他好文 时间:
2020-07-18 11:23:22
阅读次数:
62
一、椒盐噪声 void salt(Mat& img, int num) { if (img.data == NULL) return; srand(time(NULL)); int i, j; for (int k = 0; k < num; k++) { i = rand() % img.rows ...
分类:
其他好文 时间:
2020-07-09 12:30:12
阅读次数:
72