codeword/internal/initialize/encrypt.go

14 lines
289 B
Go
Raw Normal View History

2024-01-04 11:27:50 +00:00
package initialize
import (
2024-11-22 11:22:08 +00:00
"gitea.pena/PenaSide/codeword/internal/utils/encrypt"
2024-01-04 11:27:50 +00:00
)
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{
2025-01-02 10:44:52 +00:00
PublicKey: cfg.EncryptPublicKey,
PrivateKey: cfg.EncryptPrivateKey,
SignSecret: cfg.EncryptSignSecret,
2024-01-04 11:27:50 +00:00
})
}