1
0

Upgrade JS and Go deps versions (#517)

هذا الالتزام موجود في:
Thomas Miceli
2025-10-07 16:59:37 +02:00
ملتزم من قبل GitHub
الأصل f0a596aed0
التزام f653179cbf
81 ملفات معدلة مع 2487 إضافات و6227 حذوفات

عرض الملف

@@ -19,7 +19,8 @@ func AESEncrypt(key, text []byte) ([]byte, error) {
if _, err = io.ReadFull(rand.Reader, iv); err != nil {
return nil, err
}
// TODO: remove deprecated
//nolint:staticcheck
stream := cipher.NewCFBEncrypter(block, iv)
stream.XORKeyStream(ciphertext[aes.BlockSize:], text)
@@ -38,7 +39,8 @@ func AESDecrypt(key, ciphertext []byte) ([]byte, error) {
iv := ciphertext[:aes.BlockSize]
ciphertext = ciphertext[aes.BlockSize:]
// TODO: remove deprecated
//nolint:staticcheck
stream := cipher.NewCFBDecrypter(block, iv)
stream.XORKeyStream(ciphertext, ciphertext)