Шифрование персональных данных в хранилище (AES-GCM)

This commit is contained in:
Onbehalfofme
2026-09-22 21:42:14 +03:00
committed by dakocha3
parent 6afe3442f2
commit 1c9c030283
8 changed files with 215 additions and 17 deletions
@@ -0,0 +1,18 @@
package ru.pdguard;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import ru.pdguard.core.PayloadCipher;
import static org.junit.jupiter.api.Assertions.assertTrue;
@SpringBootTest
class CipherEnabledTest {
@Autowired PayloadCipher cipher;
@Test
void cipherIsEnabled() {
assertTrue(cipher.enabled(), "шифрование должно быть включено ключом из конфигурации");
}
}