PHPackages                             daniel-ness/ansible-vault - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. daniel-ness/ansible-vault

ActiveLibrary[Security](/categories/security)

daniel-ness/ansible-vault
=========================

PHP port of ansible-vault encryption/decryption

0.0.3(6y ago)22.6k↓27.8%[1 issues](https://github.com/daniel-ness/ansible-vault/issues)1MITPHPPHP &gt;=7.2CI failing

Since Nov 12Pushed 5y ago1 watchersCompare

[ Source](https://github.com/daniel-ness/ansible-vault)[ Packagist](https://packagist.org/packages/daniel-ness/ansible-vault)[ RSS](/packages/daniel-ness-ansible-vault/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (4)Used By (1)

daniel-ness/ansible-vault
=========================

[](#daniel-nessansible-vault)

[![Build Status](https://camo.githubusercontent.com/b4a0a8dd189506c94e4cf094d191d6df080a2cbb962bbd66e95d0fb956e5a09c/68747470733a2f2f7472617669732d63692e6f72672f64616e69656c2d6e6573732f616e7369626c652d7661756c742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/daniel-ness/ansible-vault)[![Codacy Badge](https://camo.githubusercontent.com/d2256f3aa5152065c277da9bd7b084f2eb56e957d665682c7e1a166ac68fa590/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3130306131366630366330613431623738656162386435636231643964363964)](https://www.codacy.com/manual/daniel-ness/ansible-vault?utm_source=github.com&utm_medium=referral&utm_content=daniel-ness/ansible-vault&utm_campaign=Badge_Grade)

Overview
--------

[](#overview)

I've no idea if anyone else will ever possibly require this, but I did.

This package allows you to decrypt `ansible-vault` encrypted strings back to plaintext.

Initially I was using `shell_exec` to pipe the output of these commands into my application, but that seemed ugly so instead I've ported the logic from [https://github.com/ansible/ansible/blob/devel/lib/ansible/parsing/vault/\_\_init\_\_.py](https://github.com/ansible/ansible/blob/devel/lib/ansible/parsing/vault/__init__.py).

Installation
------------

[](#installation)

```
composer require daniel-ness/ansible-vault

```

Usage
-----

[](#usage)

```
