File: bcrypt_test.go

package info (click to toggle)
golang-github-jimstudt-http-authentication 0.0~git20140401.3eca13d-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 284 kB
  • sloc: makefile: 2
file content (11 lines) | stat: -rw-r--r-- 308 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
package basic

import (
	"testing"
)

func Test_Bcrypt(t *testing.T) {
	testParserGood(t, "bcrypt", nil, RejectBcrypt, "$2y$05$NqR6p/K60C40W08.LDCTNeLpSC.gVVkadaLXysS5Y.nGNPltVacSi", "bar")
	testParserBad(t, "bcrypt", nil, RejectBcrypt, "$2y$0")
	testParserNot(t, "bcrypt", nil, RejectBcrypt, "plaintext")
}