wphash

package module
v0.0.0-...-2bdd71e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2016 License: MIT Imports: 5 Imported by: 2

README

Wordpress Hasher for Golang

Godoc reference Build Status Code Climate

Implementation of Wordpress hashing system for Golang

Installation

go get github.com/GerardSoleCa/wordpress-hash-go

Usage

    import "github.com/GerardSoleCa/wordpress-hash-go"
    
    func main(){
        password := "thisisapassword"
        hash := wphash.HashPassword(password)
        checked := wphash.CheckPassword(password, hash)
    }

Tests

go test

License

MIT

Documentation

Index

Constants

View Source
const ITERATION_COUNT_LOG2 = 8
View Source
const ITOA64 = "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
View Source
const POSSIBLE_CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"

Variables

This section is empty.

Functions

func CheckPassword

func CheckPassword(password string, storedHash string) bool

CheckPassword function to check if a password and its hash are valid or not

func HashPassword

func HashPassword(password string) string

HashPassword function to hash a given password

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL