File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
dev/tests/integration/testsuite/Magento/EncryptionKey/Setup/Patch/Data Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 13
13
use Magento \Framework \App \DeploymentConfig ;
14
14
use Magento \Framework \Encryption \Encryptor ;
15
15
16
+ /**
17
+ * Class SodiumChachaPatch library test
18
+ */
16
19
class SodiumChachaPatchTest extends \PHPUnit \Framework \TestCase
17
20
{
18
21
private const PATH_KEY = 'crypt/key ' ;
@@ -103,6 +106,13 @@ private function legacyEncrypt(string $data): string
103
106
return '0: ' . Encryptor::CIPHER_RIJNDAEL_256 . ': ' . base64_encode ($ encrpted );
104
107
}
105
108
109
+ /**
110
+ * Get Encryption key
111
+ *
112
+ * @return string
113
+ * @throws \Magento\Framework\Exception\FileSystemException
114
+ * @throws \Magento\Framework\Exception\RuntimeException
115
+ */
106
116
private function getEncryptionKey (): string
107
117
{
108
118
$ key = $ this ->deployConfig ->get (static ::PATH_KEY );
You can’t perform that action at this time.
0 commit comments