refactor: use io.Reader instead of custom method

This commit is contained in:
Unlock Music Dev committed 2022-11-19 07:25:43 +08:00
1 parent 4365628bff
commit 67ff0c44cd
17 files changed
+420 -460

No files matched your search

+1 -1
View File
@@ -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