PHP code example of dnetix / masterpass
1. Go to this page and download the library: Download dnetix/masterpass library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dnetix / masterpass example snippets
$keystore = [];
trim(openssl_pkcs12_read(file_get_contents(__DIR__ . '/NAME_OF_THE_P12_FILE.p12'), $keystore, 'THE_PASSWORD_OF_THE_P12'));
echo base64_encode($keystore['pkey']);
$privateKey = base64_decode('THE_TOTAL_CHARACTERS_OBTAINED');
sh
php -a