File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 2
2
composer.lock
3
3
phpunit.xml
4
4
/vendor /
5
+ composer.phar
Original file line number Diff line number Diff line change @@ -35,11 +35,10 @@ Install via Composer:
35
35
require __DIR__ . '/vendor/autoload.php';
36
36
37
37
// These keys won't actually work... on purpose. Create your OWN!
38
+ $encryptionKey = '6zp4y5vnUQpfEroWI6dMq5lC46F5Dmqa4NDcM1W42k=';
39
+ $macKey = 'RJikKksPg3UmqgQPXBwCmcSOMHQn0iOtQAFcfcQOTU=';
38
40
39
- $phpcrypt = new \PHPEncryptData\Simple(
40
- '6zp4y5vnUQpfEroWI6dMq5lC46F5Dmqa4NDcM1W42k='
41
- 'RJikKksPg3UmqgQPXBwCmcSOMHQn0iOtQAFcfcQOTU='
42
- );
41
+ $phpcrypt = new \PHPEncryptData\Simple($encryptionKey, $macKey);
43
42
44
43
$ciphertext = $phpcrypt->encrypt('Foobar');
45
44
printf("Ciphertext: %s\n", $ciphertext);
@@ -123,10 +122,10 @@ generate an encryption key with the following command:
123
122
124
123
require __DIR__ . '/vendor/autoload.php';
125
124
126
- $phpcrypt = new \PHPEncryptData\Simple(
127
- '6zp4y5vnUQpfEroWI6dMq5lC46F5Dmqa4NM1W4u2k=',
128
- 'RJikKksPg3UmqgQPXBwCmcSOMHQn0iOtFcfRcQOTU='
129
- );
125
+ $encryptionKey = '6zp4y5vnUQpfEroWI6dMq5lC46F5Dmqa4NDcM1W42k=';
126
+ $macKey = 'RJikKksPg3UmqgQPXBwCmcSOMHQn0iOtQAFcfcQOTU=';
127
+
128
+ $phpcrypt = new \PHPEncryptData\Simple($encryptionKey, $macKey );
130
129
131
130
4 . Call the encrypt() function:
132
131
You can’t perform that action at this time.
0 commit comments