Earlier quoted context omitted.
function encrypt(public_key, file) { var pem_pub_key = sshKeyToPEM(public_key); // convert rsa to pem var chunks = []; var buffer = new Buffer(fs.readFileSync(file, 'utf8')); // work around for 214 character limit for encrypting // text with small openssh rsa pub key for (var i = 0; i According to the docs, crypto.publicEncrypt uses OAEP by default, so the bulk of the terribleness should mainly be how horribly slow t…
OAEP doesn't allow you to encrypt variable-length data. They may very well be using OAEP, but that's not my point.
Show HN: Encrypted Communication via GitHub Using Node.js and SSH Keys
11–20 of 47 posts
Re: Show HN: Encrypted Communication via GitHub Using Node.js and SSH Keys
#12Re: Show HN: Encrypted Communication via GitHub Using Node.js and SSH Keys
#13Is this what I think it is? An ECB-mode RSA implementation?
Re: Show HN: Encrypted Communication via GitHub Using Node.js and SSH Keys
#14Is this what I think it is? An ECB-mode RSA implementation?
What is an ECB-mode RSA? Is it using RSA as a block cipher of blocksize order-1 ? And padding each block and concatenate them?
Re: Show HN: Encrypted Communication via GitHub Using Node.js and SSH Keys
#15Re: Show HN: Encrypted Communication via GitHub Using Node.js and SSH Keys
#16To function, both the reader and writer have to download special software. If you're going to do that, why not just have both sides download PGP?
... but I guess if people want to do that, they can already accomplish it with Keybase. And PGP.
Re: Show HN: Encrypted Communication via GitHub Using Node.js and SSH Keys
#17To function, both the reader and writer have to download special software. If you're going to do that, why not just have both sides download PGP?
Maybe GitHub is being treated as a trusted key exchange intermediary? ... but I guess if people want to do that, they can already accomplish it with Keybase. And PGP.
Re: Show HN: Encrypted Communication via GitHub Using Node.js and SSH Keys
#18Earlier quoted context omitted.
Maybe GitHub is being treated as a trusted key exchange intermediary? ... but I guess if people want to do that, they can already accomplish it with Keybase. And PGP.
If you trust my Github account, why wouldn't you trust a Github repository with my PGP key in it?
Re: Show HN: Encrypted Communication via GitHub Using Node.js and SSH Keys
#19> Your private key is not being stolen, read the code! I'd change this to: > Is your private key being stolen? Read the code!
Re: Show HN: Encrypted Communication via GitHub Using Node.js and SSH Keys
#20This exists already: https://github.com/substack/cipherhub