note 120061 deleted from function.blenc-encrypt by cmb
| From: | cmb@php.net | Date: | Wed, 24 Feb 2021 12:30:55 +0000 |
| Subject: | note 120061 deleted from function.blenc-encrypt by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-219252@lists.php.net to get a copy of this message | ||
Note Submitter: user at grr dot la
----
as [b]encryption_key[/b] need not key, but key file. examle:
[code]
<?php
blenc_encrypt($source_code, "my_source_encoded.php",
'IMyxRIF3w+oTRCf4VOnRvw=='); // invalid
blenc_encrypt($source_code, "my_source_encoded.php",
file_gets_contents(ini_get('blenc.key_file'))); // invalid
blenc_encrypt($source_code, "my_source_encoded.php", ini_get('blenc.key_file'));
//valid
?>
[/code]
for encoding key file may have more that 1 key. code will be run, but php return warning if valid
key not first.