16 lines
302 B
Go
16 lines
302 B
Go
package libPassword
|
|
|
|
import "fmt"
|
|
|
|
func main() {
|
|
password_str := "root"
|
|
x, err := Validate("pbkdf2_sha1$10000$a5viM+Paz3o=$orD4shu1Ss+1wPAhAt8hkZ/fH7Y=", password_str)
|
|
if x {
|
|
fmt.Println("Valide")
|
|
if err {
|
|
fmt.Print("Deprecated,replace with: ")
|
|
fmt.Println(NewHash(password_str))
|
|
}
|
|
}
|
|
}
|