Decrypt BIP38 encryption?
Solution 1:
There's the JavaScript component bip38 you can install with npm
:
npm install --save bip38
It comes with simple methods to encrypt and decrypt private keys, see its Github page for the syntax and further reading.
If you want to learn how to use JavaScript in shell scripts I recommend this article: How to Write Shell Scripts with JavaScript