{"id":19621304,"url":"https://github.com/commenthol/ansible-vault","last_synced_at":"2025-03-04T09:04:21.586Z","repository":{"id":34932334,"uuid":"191830230","full_name":"commenthol/ansible-vault","owner":"commenthol","description":"An ansible vault compatible en- and decryption library for node","archived":false,"fork":false,"pushed_at":"2024-08-30T12:28:01.000Z","size":54,"stargazers_count":18,"open_issues_count":1,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T08:07:01.645Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/commenthol.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-13T20:40:18.000Z","updated_at":"2024-08-30T12:28:05.000Z","dependencies_parsed_at":"2024-07-27T08:46:39.648Z","dependency_job_id":"c6e0cd68-ef0c-4f7d-8dc4-159540cdd66d","html_url":"https://github.com/commenthol/ansible-vault","commit_stats":{"total_commits":27,"total_committers":4,"mean_commits":6.75,"dds":0.2222222222222222,"last_synced_commit":"573bbb1e34e0ceacad2c5cf46e99870dc2939eb3"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commenthol%2Fansible-vault","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commenthol%2Fansible-vault/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commenthol%2Fansible-vault/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commenthol%2Fansible-vault/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/commenthol","download_url":"https://codeload.github.com/commenthol/ansible-vault/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241818889,"owners_count":20025210,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T11:22:18.640Z","updated_at":"2025-03-04T09:04:21.558Z","avatar_url":"https://github.com/commenthol.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NPM version](https://img.shields.io/npm/v/ansible-vault) ![npm](https://img.shields.io/npm/dm/ansible-vault)](https://www.npmjs.com/package/ansible-vault/)\n[![Build Status](https://github.com/commenthol/ansible-vault/actions/workflows/ci.yml/badge.svg)](https://github.com/commenthol/ansible-vault/actions/workflows/ci.yml)\n\n# ansible-vault\n\n\u003e An Ansible vault compatible en- and decryption library for javascript\n\n## usage\n\nencrypt\n\n```js\nimport { Vault } from 'ansible-vault'\n\nconst v = new Vault({ password: 'pa$$w0rd' })\nv.encrypt('superSecret123').then(console.log)\n//\u003e $ANSIBLE_VAULT;1.1;AES256\n//\u003e 33383239333036363833303565653032383832663162356533343630623030613133623032636566\n//\u003e 6536303436646561356461623866386133623462383832620a646363626137626635353462386430\n//\u003e 34333937313366383038346135656563316236313139333933383139376333353266666436316536\n//\u003e 6335376265313432610a313537363637383264646261303637646631346137393964386432313633\n//\u003e 3666\n\n// or for synchronous operation\nconst vault = v.encryptSync('superSecret123')\n```\n\ndecrypt\n\n```js\nimport { Vault } from 'ansible-vault'\n\nconst vault = `$ANSIBLE_VAULT;1.1;AES256\n33383239333036363833303565653032383832663162356533343630623030613133623032636566\n6536303436646561356461623866386133623462383832620a646363626137626635353462386430\n34333937313366383038346135656563316236313139333933383139376333353266666436316536\n6335376265313432610a313537363637383264646261303637646631346137393964386432313633\n3666`\n\nconst v = new Vault({ password: 'pa$$w0rd' })\nv.decrypt(vault).then(console.log)\n//\u003e superSecret123\n\n// or for synchronous operation\nconst secret = v.decryptSync(vault)\n```\n\n## license\n\nMIT Licensed\n\n## references\n\n\u003c!-- !ref --\u003e\n\n* [vault-source][vault-source]\n\n\u003c!-- ref! --\u003e\n\n[vault-source]: https://github.com/ansible/ansible/blob/devel/lib/ansible/parsing/vault/__init__.py\n\n[Ansible®](https://docs.ansible.com/ansible/latest/dev_guide/style_guide/trademarks.html) is a registered trademark of [RedHat®](https://www.redhat.com/en) (I hope this is correct...)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommenthol%2Fansible-vault","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcommenthol%2Fansible-vault","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommenthol%2Fansible-vault/lists"}