mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-25 09:06:34 +08:00
feat: sql解析器替换、工单统一由‘我的流程’发起、流程定义支持自定义条件触发审批、资源隐藏编号、model支持物理删除等
This commit is contained in:
@@ -18,18 +18,3 @@ func TestAesEncrypt(t *testing.T) {
|
||||
|
||||
t.Log(string(decrypt))
|
||||
}
|
||||
|
||||
func TestDes(t *testing.T) {
|
||||
key := []byte("eyJhbGciOiJIUzI1NiIsInR5")
|
||||
data := []byte("SELECT * FROM \"instruct\" OFFSET 0 LIMIT 25;")
|
||||
encrypt, err := DesEncrypt(data, key)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
t.Log("encrypt", encrypt)
|
||||
decrypt, err := DesDecrypt(encrypt, key)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
t.Log("decrypt", decrypt)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user