Skip to content

thundernet8/wordpress-hash-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wordpress-hash-go

WordPress hashes implemented with Golang

Usage

Start use it

Download and install

$ go get github.com/thundernet8/wordpress-hash-go

Import it in your code

import (
    wphash "github.com/thundernet8/wordpress-hash-go"
)

Canonical example:

package main

import (
	"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)
}

About

WordPress password hasher implemented with Golang

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages