JSON Web Token(JWT)是一种通用的基于文本的消息传输格式,用于以紧凑和安全的方式传输信息。本文详细介绍JWT的结构、工作原理和安全特性。
2024/5/6大约 3 分钟约 956 字
博客一直用的七牛cdn做图床,最近启用了https,就出现了这个Mixed Content的提示。连安全小锁都没有了,这怎么能忍?
Mixed Content: The page at 'https://vistazx1.top/xxx' was loaded over HTTPS, but requested an insecure image 'http://xxxx/ssl-config.PNG'. This content should also be served over HTTPS.
使用了jsencrypt这个库 jsencrypt 其实非常简单
$('#submit').click(function() {
// Encrypt with the public key...
var encrypt = new JSEncrypt();
encrypt.setPublicKey(public_key);
document.getElementById("passwd").value = encrypt.encrypt($('#passwd').val());
});