md5_test.go 212 B

1234567891011121314
  1. package md5
  2. import "testing"
  3. func TestEncrypt(t *testing.T) {
  4. t.Log(New().Encrypt("123456"))
  5. }
  6. func BenchmarkEncrypt(b *testing.B) {
  7. b.ResetTimer()
  8. for i := 0; i < b.N; i++ {
  9. New().Encrypt("123456")
  10. }
  11. }