MCPcopy
hub / github.com/gtank/cryptopasta / BenchmarkBcrypt

Function BenchmarkBcrypt

hash_test.go:71–79  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

69}
70
71func BenchmarkBcrypt(b *testing.B) {
72 for i := 0; i < b.N; i++ {
73 _, err := HashPassword([]byte("thisisareallybadpassword"))
74 if err != nil {
75 b.Error(err)
76 break
77 }
78 }
79}
80
81func ExampleHash() {
82 tag := "hashing file for lookup key"

Callers

nothing calls this directly

Calls 1

HashPasswordFunction · 0.85

Tested by

no test coverage detected