codeword/internal/initialize/encrypt.go

14 lines
258 B
Go
Raw Normal View History

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