Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptWithRawURLBase64 ¶
DecryptWithRawURLBase64
流程: (1) 凯撒密码解密 (2) base64解码(base64.RawURLEncoding)
func Encrypt ¶
Encrypt 凯撒密码加密.
PS: 仅加密大小写的英文字母.
@param shift 推荐值: (1) [0, 25]
(2) 不推荐使用 26*n(n >= 0),因为这样加密了个寂寞
func EncryptWithRawURLBase64 ¶
EncryptWithRawURLBase64
PS: 本函数对 Encrypt 就行了封装,好处: 对所有字符进行加密.
流程: (1) base64编码(base64.RawURLEncoding) (2) 凯撒密码加密
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.