Skip to content

Instantly share code, notes, and snippets.

Yasir Alguwaifli ymg

  • Edinburgh
Block or report user

Report or block ymg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:bf360ef0ed88fde5e2d6
package main
import (
"encoding/json"
"fmt"
"time"
"github.com/garyburd/redigo/redis"
)
View hasher.go
/*
password hasher, follows the Mozilla security guide.
blog: https://blog.mozilla.org/webdev/2012/06/08/lets-talk-about-password-storage/
full guide: https://wiki.mozilla.org/WebAppSec/Secure_Coding_Guidelines#Password_Storage
*/
package main
import (
"crypto/hmac"
@ymg
ymg / gist:8336460
Last active Jan 2, 2016
mozilla password hasher in go
View gist:8336460
/*
password hasher, follows the Mozilla security guide.
blog: https://blog.mozilla.org/webdev/2012/06/08/lets-talk-about-password-storage/
full guide: https://wiki.mozilla.org/WebAppSec/Secure_Coding_Guidelines#Password_Storage
*/
package main
import (
"code.google.com/p/go.crypto/bcrypt"
You can’t perform that action at this time.