Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Encrypt ¶
Encrypt creates a new password hash using a strong one-way bcrypt algorithm. Source secret is hashed with the given key (if set) before actual bcrypting.
Types ¶
type Signature ¶
type Signature struct {
// contains filtered or unexported fields
}
func NewSignature ¶
NewSignature creates a signature with secret salt for encode/decode consequent values.
func (*Signature) Decode ¶
Decode unpacks the source string to original values. Pattern:
- signed value => base64 decode => nano|src(hex)|crc
- verify crc
- verify nano timestamp
Click to show internal directories.
Click to hide internal directories.