增加了令牌验证的ä¸两个方法
parent
bcc1694c2c
commit
8af59d845b
@ -0,0 +1,21 @@
|
||||
/*
|
||||
* @FileName: base64_test.go
|
||||
* @Author: JuneXu
|
||||
* @CreateTime: 2022/3/24 上午12:03
|
||||
* @Description:
|
||||
*/
|
||||
|
||||
package test
|
||||
|
||||
import (
|
||||
"encoding/base64"
|
||||
"fmt"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestBs(t *testing.T) {
|
||||
authStr := fmt.Sprintf("%v:%v", "aaa", "bbb")
|
||||
data := base64.StdEncoding.EncodeToString([]byte(authStr))
|
||||
t.Log(data)
|
||||
|
||||
} //YWFhOmJiYg==
|
Loading…
Reference in New Issue