Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Encrypt ¶
MakePassword 用于将明文密码转为加密后的密码。这里没有判断密码是否为空。 django 密码加密算法的 go 语言版本。 Django 的实现细节请参考 Python 和 django 文档: django.contrib.auth.hashers.make_password django.utils.crypto import pbkdf2 hashlib.sha256 base64 参考:https://studygolang.com/articles/5262
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.