This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
2016-09-03 10:18:46 +02:00
|
|
|
package password
|
2016-05-12 19:16:39 +02:00
|
|
|
|
|
|
|
import "fmt"
|
|
|
|
|
2016-08-24 23:02:25 +02:00
|
|
|
func main() {
|
2016-09-03 10:18:46 +02:00
|
|
|
password := "root"
|
|
|
|
x, err := Validate("pbkdf2_sha1$10000$a5viM+Paz3o=$orD4shu1Ss+1wPAhAt8hkZ/fH7Y=", password)
|
2016-08-24 23:02:25 +02:00
|
|
|
if x {
|
2016-05-12 19:16:39 +02:00
|
|
|
fmt.Println("Valide")
|
|
|
|
if err {
|
|
|
|
fmt.Print("Deprecated,replace with: ")
|
2016-09-03 10:18:46 +02:00
|
|
|
fmt.Println(NewHash(password))
|
2016-05-12 19:16:39 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|