PHP code example of daniel-ness / ansible-vault
1. Go to this page and download the library: Download daniel-ness/ansible-vault 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/ */
daniel-ness / ansible-vault example snippets
$php
use DanielNess\Ansible\Vault\Decrypter;
$vaultText = '$ANSIBLE_VAULT;1.1;AES256
38353635623865383037653936623235306331616630633732366331613438313135646535623962
6366616234316663626161653361373936303731393736300a626639653939373635623138396463
66613665666538376634326136323032303132383335303933336330666331633339616133333633
6534653436663231620a336162353438306163313463303237363265313763326266346465656335
39346438303334376534663130336466326162643266623630303233656430613330';
$plainText = Decrypter::decryptString($vaultText, $password);
echo $plainText . "\n";
> itCanDecryptOnePointOneString