mirror of
https://git.um-react.app/um/cli.git
synced 2025-11-28 03:33:02 +00:00
refactor: use io.Reader instead of custom method
This commit is contained in:
@@ -8,7 +8,7 @@ func PKCS7UnPadding(encrypt []byte) []byte {
|
||||
return encrypt[:(length - unPadding)]
|
||||
}
|
||||
|
||||
func DecryptAes128Ecb(data, key []byte) []byte {
|
||||
func DecryptAES128ECB(data, key []byte) []byte {
|
||||
cipher, _ := aes.NewCipher(key)
|
||||
decrypted := make([]byte, len(data))
|
||||
size := 16
|
||||
|
||||
Reference in New Issue
Block a user