github.com/gramework/gramework@v1.8.1-0.20231027140105-82555c9057f5/grypto/registry.go (about) 1 package grypto 2 3 import ( 4 "github.com/gramework/gramework/grypto/providers/bcrypt" 5 "github.com/gramework/gramework/grypto/providers/scrypt" 6 ) 7 8 const defaultProvider = "scrypt" 9 10 var registry = map[string]PasswordCryptoProvider{ 11 "scrypt": scrypt.DefaultProvider, 12 "2a": bcrypt.DefaultProvider, 13 }