MCPcopy
hub / github.com/inbug-team/InScan / PKCS7UnPadding

Function PKCS7UnPadding

generate_exec/generate_exec.go:64–68  ·  view source on GitHub ↗

去码

(origData []byte)

Source from the content-addressed store, hash-verified

62
63// 去码
64func PKCS7UnPadding(origData []byte) []byte {
65 length := len(origData)
66 unPadding := int(origData[length-1])
67 return origData[:(length - unPadding)]
68}
69
70// AES CBC 加密
71func AesEncrypt(orig string, key string) string {

Callers 1

AesDecryptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected