crypto_test.go 210 B

1234567891011121314
  1. package mhayaCrypto
  2. import (
  3. "fmt"
  4. "testing"
  5. )
  6. func TestBase64Decode(t *testing.T) {
  7. token := "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9"
  8. val, err := Base64Decode(token)
  9. fmt.Println(val)
  10. fmt.Println(err)
  11. }