Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thundernet8/wordpress-hash-go
WordPress password hasher implemented with Golang
https://github.com/thundernet8/wordpress-hash-go
golang-package passwordhasher wordpress
Last synced: 8 days ago
JSON representation
WordPress password hasher implemented with Golang
- Host: GitHub
- URL: https://github.com/thundernet8/wordpress-hash-go
- Owner: thundernet8
- License: mit
- Created: 2021-07-19T02:16:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-19T03:17:06.000Z (over 3 years ago)
- Last Synced: 2024-10-12T13:42:50.463Z (about 1 month ago)
- Topics: golang-package, passwordhasher, wordpress
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## wordpress-hash-go
WordPress hashes implemented with Golang
## Usage
### Start use it
Download and install
```bash
$ go get github.com/thundernet8/wordpress-hash-go
```Import it in your code
```go
import (
wphash "github.com/thundernet8/wordpress-hash-go"
)
```### Canonical example:
```go
package mainimport (
"fmt"wphash "github.com/thundernet8/wordpress-hash-go"
)func main() {
password := "123456"
// hash password
hash := wphash.HashPassword(password)
fmt.Printf("Password <%s> hash result is <%s>", password, hash)// verify password and hash
match := wphash.CheckWordPressPasswordHash(password, "$P$BmIaPlVaAl6kEsffVZGdASCVH.i1cZ0")
fmt.Printf("Check password <%s> with hash <%s> result is %t", match)
}
```