用户密码、手机等隐私信息的保存方式
摘要:密码的存储 先上结论:目前业界较为推荐的做法是使用PBKDF2、BCrypt或SCrypt等算法进行密码加密存储。 安全性一般都系统的做法:md5(pwd + salt); salt是盐值随机字符串; user_name password salt xiaoli DFEASDFASKDFJKJKLA
阅读全文
posted @
2024-06-23 09:42
del88
阅读(200)
推荐(0) 编辑
Delphi 官方 MD5
摘要:去官方文档搜就行了,引入System.Hash 单元: http://docwiki.embarcadero.com/Libraries/Athens/en/System.Hash.THashMD5 unit Unit4; interface uses Winapi.Windows, Winapi.
阅读全文
posted @
2023-11-23 08:21
del88
阅读(104)
推荐(0) 编辑
delphi 自己用的加密解密算法
摘要:// 加密方法一(通过密钥加密解密)function EncryptString(Source, Key: string): string;function UnEncryptString(Source, Key: string): string;//加密方法二(通过移位加密解密)function
阅读全文
posted @
2014-08-22 13:27
del88
阅读(148)
推荐(0) 编辑
ByteToHex的两种实现方法
摘要:1.官方的IdGlobal中有这个方法 //IPv4 address conversionfunction ByteToHex(const AByte: Byte): string;{$IFDEF USE_INLINE}inline;{$ENDIF}begin SetLength(Result, 2
阅读全文
posted @
2012-03-01 23:34
del88
阅读(114)
推荐(0) 编辑