初次提交

This commit is contained in:
Mob2003
2023-03-22 11:30:21 +08:00
parent 0c34cff145
commit 30bf0dc9d0
95 changed files with 14609 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
package aes
import (
"bytes"
"crypto/aes"
"crypto/cipher"
)
func AesCfbNewEncrypSteam() cipher.Stream {
block, _ := aes.NewCipher(Key)
iv := bytes.Repeat([]byte("1"), block.BlockSize())
return cipher.NewCFBEncrypter(block, iv)
}
func AesCfbNewDecrypSteam() cipher.Stream {
block, _ := aes.NewCipher(Key)
iv := bytes.Repeat([]byte("1"), block.BlockSize())
return cipher.NewCFBDecrypter(block, iv)
}