codeword/internal/initialize/encrypt.go
2024-01-11 15:07:17 +03:00

14 lines
258 B
Go

package initialize
import (
"codeword/internal/utils/encrypt"
)
func Encrypt(cfg Config) *encrypt.Encrypt {
return encrypt.New(&encrypt.EncryptDeps{
PublicKey: cfg.PublicCurveKey,
PrivateKey: cfg.PrivateCurveKey,
SignSecret: cfg.SignSecret,
})
}