This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"time" | |
"github.com/garyburd/redigo/redis" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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" |