1
0
mirror of https://gitee.com/tawords/tawords-docs synced 2025-09-13 05:21:38 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

small changes; add tavi system

This commit is contained in:
2021-08-11 13:00:10 +08:00
parent d2811e3d9d
commit c6509fdc25
11 changed files with 265 additions and 18 deletions

View File

@@ -0,0 +1,16 @@
## 注册、登录时密码使用的加密技术
### 登录
> 使用`密码加盐`生成不可逆哈希,**他人无法获取密码原文**。
```javascript
md5.hex(pwd + md5.hex(pwd));
```
### 注册
> 使用密码倒序`Base64`加密,再倒序`Base64`加密,避免密码在网上裸奔。
```javascript
Base64.encode(Base64.encode(pwd.split('').reverse().join('')).split('').reverse().join(''));
```
网站使用`SSL证书`即网址前面的https数据传输`非对称加密`(即使用“公钥”加密,“私钥”解密,公钥大家都知道,私钥仅服务器知道),确保中间人无法获得您的密码。