加密
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
334 B

3 years ago
  1. package crypter
  2. import (
  3. // "fmt"
  4. "testing"
  5. )
  6. func Test_EncryptedToken(t *testing.T) {
  7. //2a12d5373e04a96c2e1862f786e9d054464fc13d
  8. // fmt.Println([]byte("2a12d5373e04a96c2e1862f786e9d054464fc13d"))
  9. token := "8d9a0183-ef9c-4ea6-bcf7-ab562ff4ac57"
  10. key := "i3d6o32wo8fvs1fvdpwens"
  11. ret := EncryptedToken(token, key)
  12. t.Log(ret)
  13. }