15、(6-24)choose the best answerExamine the structure of the MEMBERS table:You want to display details of all members who reside in states starting wit ...
分类:
其他好文 时间:
2019-02-18 16:18:09
阅读次数:
1104
模式定义:允许一个对象在其内部状态改变时改变它的行为,对象看起来似乎修改了它的类。其别名为状态对象(Objects for States),状态模式是一种对象行为型模式。 模式结构: Context: 环境类,定义客户端所感兴趣的接口,并且保留一个具体状态类的实例。这个具体状态类的实例给出此环境对象 ...
分类:
其他好文 时间:
2019-02-14 10:33:09
阅读次数:
257
一. 敏感数据加密1.安装并引入中间件 npm install utility const utils = require('utility')2.加密方法 function md5Pwd(pwd) { const salt = 'sensetime_is_good_5589x321yza67.!@ ...
分类:
其他好文 时间:
2019-02-13 10:43:43
阅读次数:
444
salt-key is used to manage Salt authentication keys salt-key 常用参数: ...
分类:
其他好文 时间:
2019-02-09 18:05:44
阅读次数:
203
salt-run 是用来运行 Runners 模块的命令,常见用法如下: ...
分类:
其他好文 时间:
2019-02-07 22:06:22
阅读次数:
240
"1297. Palindrome" Time limit: 1.0 second Memory limit: 64 MB The “U.S. Robots” HQ has just received a rather alarming anonymous letter. It states tha ...
分类:
编程语言 时间:
2019-02-07 20:34:01
阅读次数:
144
import random import string import json import logging import time import os import sys def usage(): print('python ' + sys.argv[0] + 'user' + 'ip') pr... ...
分类:
编程语言 时间:
2019-02-02 11:23:08
阅读次数:
204
一、token加盐处理# import itsdangerous## salt='sdf234^#$@G'# t = itsdangerous.TimedJSONWebSignatureSerializer(salt,expires_in=30)# # res = t.dumps({'usernam ...
分类:
编程语言 时间:
2019-02-01 21:53:05
阅读次数:
185
分布式存储之-Redis 一、简介redis常用于数据库读缓存和写缓存,通常写缓存需要考虑到数据一致性的问题,读缓存应用较多redis是一个开源的,使用c语言编写的,支持网络交互的,可基于内存也可持久化的key-value数据库 二、安装部署 通过salt-master批量安装: vim redis ...
分类:
其他好文 时间:
2019-01-28 13:54:49
阅读次数:
162
md5加密(正常的md5,加盐,动态加盐) 应用于密码的密文存储,文件的一致性校验 加盐 bytes,将字符串转化为字节 sha1加密 ...
分类:
其他好文 时间:
2019-01-28 01:04:29
阅读次数:
172