codeword/internal/initialize/encrypt.go

14 lines
268 B
Go
Raw Normal View History

2024-01-04 11:27:50 +00:00
package initialize
import (
"codeword/internal/utils/encrypt"
)
func InitializeEncrypt(cfg Config) *encrypt.Encrypt {
return encrypt.New(&encrypt.EncryptDeps{
PublicKey: cfg.PublicCurveKey,
PrivateKey: cfg.PrivateCurveKey,
SignSecret: cfg.SignSecret,
})
}