1 Star 0 Fork 0

h79/goutils

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
pkcs.go 254 Bytes
Copy Edit Raw Blame History
huqiuyun authored 2022-06-01 16:22 . init
package algorithm
type PKCS interface {
Encrypt(raw, key []byte) (string, error)
Decrypt(raw string, key []byte) ([]byte, error)
}
func NewPKCS(ver int) PKCS {
switch ver {
case 1:
return NewPKCS1()
case 7:
return NewPKCS7()
}
return nil
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/h79/goutils.git
git@gitee.com:h79/goutils.git
h79
goutils
goutils
v1.10.1

Search

0d507c66 1850385 C8b1a773 1850385