为您找到相关结果82,171个
C#中的那些常用加密算法_C#教程_脚本之家
string key_8 = "abcdefgh"; string desShortKeyStr = DESHelper.Encrypt("Kiba518", key_8); Console.WriteLine($"DES加密:{ desShortKeyStr}"); Console.WriteLine($"DES解密:{ DESHelper.Decrypt(desShortKeyStr, key_8)}"); 结果如下图所示: 有时候,我们的密钥不是正好8个字符,那我们就截取前8为...
www.jb51.net/article/2003...htm 2025-5-14
C语言中对字母进行大小写转换的简单方法_C 语言_脚本之家
char s[] = "aBcDeFgH12345;!#$"; int i; printf("before tolower() : %s\n", s); for(i = 0; i < sizeof(s); i++) s[i] = tolower(s[i]); printf("after tolower() : %s\n", s); }执行结果: 1 2 before tolower() : aBcDeFgH12345;!#$ after tolower() : abcdefgh...
www.jb51.net/article/714...htm 2025-5-4
SpringBoot 分布式验证码登录方案示例详解_java_脚本之家
properties.setProperty("kaptcha.textproducer.char.string","23456789abcdefghkmnpqrstuvwxyzABCDEFGHKMNPRSTUVWXYZ"); properties.setProperty("kaptcha.textproducer.font.size", "30"); properties.setProperty("kaptcha.textproducer.char.space","3"); properties.setProperty("kaptcha.session.key", "code"); ...
www.jb51.net/program/302703w...htm 2025-5-16
python实现加密的方式总结_python_脚本之家
key = b'abcdefgh' # 需要去生成一个DES对象 des = DES.new(key, DES.MODE_ECB) # 需要加密的数据 text = 'python spider!' text = text + (8 - (len(text) % 8)) * '=' # 加密的过程 encrypto_text = des.encrypt(text.encode()) encrypto_text = binascii.b2a_hex(encrypto_text) prin...
www.jb51.net/article/1788...htm 2025-5-13
SpringBoot整合SpringSecurity和JWT的示例_java_脚本之家
secret: abcdefghabcdefghabcdefghabcdefgh 封装Result 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 import lombok.Data; import java.io.Serializable; @Data public class Result implements Serializable { private int code; ...
www.jb51.net/article/1879...htm 2025-5-13
Vue实现验证码登录的超详细步骤_java_脚本之家
const chars = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz0123456789' const charsLen = chars.length // 生成 for (let i = 0; i < len; i++) { const rgb = [Math.round(Math.random() * 220), Math.round(Math.random() * 240), Math.round(Math.random() * 200)] codeList.push({ ...
www.jb51.net/program/2985317...htm 2025-4-27
一文搞懂Java正则表达式的使用_java_脚本之家
[efgh] 表示可接收的efgh中的任意一个字符 [^] - 不可接受的字符列表 ^abc 表示除了abc之外的任意一个字符,包括数字和特殊字符 - - 连字符 A-Z 表示任意一个大写字母 . - 匹配除\n以外的任意一个字符 a..b 以a开头,b结尾,中间包括2个任意字符的长度为4的字符串 \\d - 匹配单个数字字符 \\d{3...
www.jb51.net/article/2604...htm 2025-4-30