Skip to content

Commit

Permalink
Change encryption strategy to Fips
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrovex committed Jan 17, 2019
1 parent a35ba67 commit 89161a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Adapter/EncryptionAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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()
);

Expand Down

0 comments on commit 89161a4

Please # to comment.