From 89161a4e6c2b965d0dc5c70cc6b2ac4e38ce879c Mon Sep 17 00:00:00 2001 From: gabrovex Date: Thu, 17 Jan 2019 16:22:19 +0100 Subject: [PATCH] Change encryption strategy to Fips --- src/Adapter/EncryptionAdapter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Adapter/EncryptionAdapter.php b/src/Adapter/EncryptionAdapter.php index f9eddc0..3ef8df6 100644 --- a/src/Adapter/EncryptionAdapter.php +++ b/src/Adapter/EncryptionAdapter.php @@ -4,7 +4,7 @@ use Keet\Encrypt\Interfaces\EncryptionInterface; use Keet\Encrypt\Result\EncryptionStorage; -use ParagonIE\CipherSweet\Backend\ModernCrypto; +use ParagonIE\CipherSweet\Backend\FIPSCrypto; use ParagonIE\CipherSweet\BlindIndex; use ParagonIE\CipherSweet\CipherSweet; use ParagonIE\CipherSweet\EncryptedField; @@ -54,7 +54,7 @@ public function __construct($key) $this->setKey(new EncryptionKey(new HiddenString($key))); $provider = new StringProvider( - new ModernCrypto(), + new FIPSCrypto(), $this->getKey()->getRawKeyMaterial() );