~evanj/security

4a43edae18cab5d8bf05c0da803cfb9138f3cd8c — Evan J 1 year, 2 months ago 7da08fc master
Feat(security.go): Add alias for Default: New.
1 files changed, 1 insertions(+), 0 deletions(-)

M security.go
M security.go => security.go +1 -0
@@ 62,6 62,7 @@ type Security struct{ secret string }
//	 id, ok := claims["UserID"].(string)
//	 if !ok {}
func Default(secret string) Security { return Security{secret} }
func New(secret string) Security     { return Default(secret) }

// HashCreate will create a hash for a password.
func (sec Security) HashCreate(salt, pass string) (string, error) {