浏览代码

:edit 修改包路径
:edit aes 填充加密bug 修复

fly 3 月之前
父节点
当前提交
0a9b8e7dc9
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      algorithm/encryption/AesCBCWithPadding.go
  2. 1 1
      go.mod

+ 1 - 1
algorithm/encryption/AesCBCWithPadding.go

@@ -72,5 +72,5 @@ func (a *AesCBCWithPadding) Decrypt(ciphertext []byte) ([]byte, error) {
 	mode.CryptBlocks(decrypted, ciphertext)
 
 	plaintext := zeroUnPad(decrypted)
-	return plaintext[aes.BlockSize:], nil
+	return plaintext, nil
 }

+ 1 - 1
go.mod

@@ -1,4 +1,4 @@
-module git.familybaby.top/utils
+module git.familybaby.top/flight/utils
 
 go 1.18