Skip to content

Instantly share code, notes, and snippets.

View herrdommel's full-sized avatar

Dominik herrdommel

  • Gevelsberg, Germany
View GitHub Profile

Keybase proof

I hereby claim:

  • I am herrdommel on github.
  • I am herrdommel (https://keybase.io/herrdommel) on keybase.
  • I have a public key ASBjK9ulJojcuOdT2eHA2oYem0SqOc-JqHTIEhHw8hoQgQo

To claim this, I am signing this object:

@herrdommel
herrdommel / decrypt-ansible-vault.js
Created June 13, 2024 08:12
Ansible vault decryption in NodeJS
const crypto = require('crypto');
const password = "password";
const vault = `$ANSIBLE_VAULT;1.1;AES256
33343835306666636239373663396363643766613363343837646633343933376633323964663030
3134616235646661306436643134383333633730376233650a663466323032343633383061336461
36393261363338616337613039363435313631343437323164386661326633313339396238396236
3462393338636632650a653036663266373533343232393838343161396564333963643632653932
30386135636131656130346537356637396139323134386162306431376564346537633566666532
6331323061373237336639356165393563613765663864366231`;