- 使用消息认证码而不是单向散列函数,即使用hmac(data, key)而不是hash(data+key)
- 使用安全的Hash函数,即选择SHA-2、SHA-3等,而不是MD5等
- 防止密钥推测攻击,密钥使用密码学安全的、高强度的伪随机数生成器生成,至少32字符
- 防止重放攻击,使用nonce等方式
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public enum FooEnum { | |
/** | |
* foo | |
*/ | |
FOO(0, "foo"), | |
/** | |
* bar | |
*/ | |
BAR(0, "bar"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 配置多视图解析,包括thymeleaf和Json两种视图 | |
* <ul> | |
* <li>通过url查看thymeleaf视图</li> | |
* <li>通过url+'.json'查看Json视图</li> | |
* </ul> | |
* | |
* @author yanganyu | |
* @date 2018/10/15 14:16 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Spring MVC {@link View} that renders JSON content by serializing the model for the current request | |
* using fastjson. | |
* | |
* <p>By default, the entire contents of the model map (with the exception of framework-specific classes) | |
* will be encoded as JSON. If the model contains only one key, you can have it extracted encoded as JSON | |
* alone via {@link #setExtractValueFromSingleKeyModel}. | |
* | |
* @author yanganyu | |
* @date 2018/10/15 15:48 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* thinkam patch start*/ | |
.gh-header .gh-header-sticky.is-stuck + .gh-header-shadow { | |
background-color: #000; | |
} | |
.gh-header { | |
background-color: unset; | |
} | |
/* thinkam patch end*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hk.saowen.com | |
zhidao.baidu.com | |
zidao.baidu.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[SwitchyOmega Conditions] | |
@with result | |
*.*github* +ss | |
*.*gitlab* +ss | |
*.digitalocean.com +ss | |
*.inoreader.com +ss | |
*.askubuntu.com +ss | |
.infoq.* +ss | |
*.bing.com +ss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Excel工具类 | |
* | |
* @author yanganyu | |
* @date 2019/1/11 11:42 | |
*/ | |
public class ExcelUtils { | |
private ExcelUtils() { | |
} |