文件名称:ssh-key-decrypt:解密和加密的SSH私钥
文件大小:15KB
文件格式:ZIP
更新时间:2024-06-13 01:21:33
JavaScript
ssh-key-decrypt 解密加密的SSH私钥 用法 var decrypt = require ( 'ssh-key-decrypt' ) ; // you have to actually know this already of course. var passphrase = 'hoohah' ; var fs = require ( 'fs' ) ; var path = require ( 'path' ) ; var keyfile = path . resolve ( process . env . HOME , '.ssh' , 'id_rsa' ) ; var fileData = fs . readFileSync ( keyfile , 'ascii' ) ; var key = decrypt ( fileData , passphrase ) ; //
【文件预览】:
ssh-key-decrypt-master
----fixtures()
--------id_rsa_enc_aes128_asdf.pub(451B)
--------id_rsa_unencrypted.pub(398B)
--------id_rsa_enc_des3_asdf(2KB)
--------id_rsa_unencrypted(2KB)
--------id_rsa_enc_des_asdf(2KB)
--------id_rsa_pem.pub(451B)
--------id_rsa_enc_aes192_asdf(2KB)
--------id_rsa_enc_aes256_asdf(2KB)
--------id_rsa_enc_aes128_asdf(2KB)
----test.js(2KB)
----.travis.yml(106B)
----LICENSE(765B)
----README.md(1KB)
----index.js(3KB)
----package.json(695B)