1 Star 0 Fork 0

ktcatv/mgohelper

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
util.go 332 Bytes
Copy Edit Raw Blame History
apsaras authored 2022-03-28 15:50 . initial project
package session
import (
"github.com/go-chassis/go-chassis/v2/security/cipher"
"github.com/go-chassis/openlog"
)
// TryDecrypt return the src when decrypt failed
func TryDecrypt(src string) string {
res, err := cipher.Decrypt(src)
if err != nil {
openlog.Info("cipher fallback: " + err.Error())
res = src
}
return res
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/ktcatv/mgohelper.git
git@gitee.com:ktcatv/mgohelper.git
ktcatv
mgohelper
mgohelper
v0.1.1

Search

D67c1975 1850385 1daf7b77 1850385