Skip to content

crypto ​

go
import "github.com/prescriptoo/prescriptoo-api/services/identity/internal/adapters/crypto"

Package crypto implements password hashing and access-token signing.

Index ​

func NewAccessTokens ​

go
func NewAccessTokens(secret string) (ports.AccessTokens, error)

NewAccessTokens creates a JWT signer and validator using the configured secret.

func NewPasswordHasher ​

go
func NewPasswordHasher() ports.PasswordHasher

NewPasswordHasher returns a salted PBKDF2-HMAC-SHA256 password hasher.

Generated by gomarkdoc

Documentation follows the source. Planned contracts are marked explicitly.