Open alanbacon opened 1 year ago
Hi @alanbacon, probably needs to replace \r (Mac Convention) by \n (Unix convention) before decrypt ?
Having the same problem but the vault was created on Fedora Linux with ansible-vault create
. I read the file ocntents with NodeJS readFileSync
before passing it to vault.decryptSync
.
Edit: Nevermind, there was a misunderstanding in how to use this lib, works now for me
@alanbacon, @Kampfmoehre Do you have shareable vault file sample ? I integrated this lib in https://github.com/CorentinTh/it-tools/pull/912, you can test here : https://it-tools-git-fork-sharevb-feat-8242ba-corentin-thomasset-s-team.vercel.app/
The new release of this library is throwing the following error on my ansible vault files:
Hmm not sure what else to say, rolling back to version 1.1.0 of this library resolved the issue.
The ansible vault files were created on OSX using the following version: