This commit is contained in:
parent
49761e7ebe
commit
dcbf450d1c
|
@ -667,14 +667,14 @@ func main() {
|
||||||
for _, account := range accounts {
|
for _, account := range accounts {
|
||||||
base64DecryptedBytes, err := base64.StdEncoding.DecodeString(*account.MobilePhone)
|
base64DecryptedBytes, err := base64.StdEncoding.DecodeString(*account.MobilePhone)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("DecodeString err :%v", err)
|
fmt.Printf("DecodeString err :%v\n", err)
|
||||||
}
|
}
|
||||||
fmt.Printf("base64DecryptedBytes: %v", base64DecryptedBytes)
|
fmt.Printf("base64DecryptedBytes: %v\n", base64DecryptedBytes)
|
||||||
phone, err := cryptoService.DecryptByAES(base64DecryptedBytes)
|
phone, err := cryptoService.DecryptByAES(base64DecryptedBytes)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("DecryptByAES err :%v", err)
|
fmt.Printf("DecryptByAES err :%v\n", err)
|
||||||
}
|
}
|
||||||
fmt.Printf("phone: %v", phone)
|
fmt.Printf("phone: %v\n", phone)
|
||||||
phoneStr := string(phone)
|
phoneStr := string(phone)
|
||||||
mid := account.GetMid()
|
mid := account.GetMid()
|
||||||
name := account.GetName()
|
name := account.GetName()
|
||||||
|
|
Loading…
Reference in New Issue