Earlier quoted context omitted.
Just don't use openssl's command line for encrypting anything, there are better tools for that. My guess is that the fixed IV is used because the IV is needed for decrypting, which means either you prepend the ciphertext with it (which means you need to buffer the whole ciphertext in memory, defeating the streaming functionality of the service) or you already know it because it's hardcoded. In any case there is no au…
Just don't use OpenSSL for anything - how many times does the community have to be burned by the same project before they switch?
PurritoBin: Ultra fast, minimalistic, encrypted command line paste-bin
21–30 of 30 posts
Re: PurritoBin: Ultra fast, minimalistic, encrypted command line paste-bin
#22This way, we are not restricted to the ciphers supported by the "Crypto-JS" NodeJS package. Not meaning to take anything away from the venerable Crypto-JS library of "standards" including RC4 and TripleDES.
Re: PurritoBin: Ultra fast, minimalistic, encrypted command line paste-bin
#23Is encryption a popular requirement? I made (and thus prefer) https://www.pastery.net/ , but nobody has asked me to add encryption, I assume that privacy (not having a list of pastes anywhere and deleting them from disk when they expire) is enough, at least for me.
If the pastes are encrypted by somebody else you simply have no idea what's inside them. You can easily find an expert who will explain to a jury, or a journalist, that you had no way to know it was an assassination plot / stolen bitcoin wallet / confession of child molestation. I'm sure you don't look (other people's business is quickly boring) but it may be difficult today to prove you didn't, because you could have.
But in terms of what I've used, in some tech jobs I've used in-house HTTPS pastebin sites. If we control the machine with the data in it then we get to decide what policies to apply, and if things go bad we know who (us) needs to fix that. In the last place I worked they used GitHub gists, so in principle Microsoft could snoop those and I'd have been uncomfortable seeing anything secret in them.
Re: PurritoBin: Ultra fast, minimalistic, encrypted command line paste-bin
#24Re: PurritoBin: Ultra fast, minimalistic, encrypted command line paste-bin
#25The author calls this "command line" pastebin. It uses curl and openssl to encrypt and submit. However it uses a Javascript-enabled web broswer to do the retrieval and decryption. Can we use the command line to do the retrieval and decryption? This way, we are not restricted to the ciphers supported by the "Crypto-JS" NodeJS package. Not meaning to take anything away from the venerable Crypto-JS library of "standards…
Re: PurritoBin: Ultra fast, minimalistic, encrypted command line paste-bin
#26This is some scary shit. Don't use this.
Re: PurritoBin: Ultra fast, minimalistic, encrypted command line paste-bin
#27> openssl enc blablabla Don't use that line for encrypting stuff. There is no authentication and the IV is static. You're just asking for your secrets to be decrypted or modified without anyone noticing
The static IV is a brown M&M but not in itself fatal because this seems to use fresh random keys each time. If your keys end up re-used (NB don't fret about somehow choosing the same random key as somebody else that's astronomically unlikely, but do fret about your choices not actually being random after all) then you're screwed anyway. There's no obvious route to decrypt these messages without the secret key, though…
Re: PurritoBin: Ultra fast, minimalistic, encrypted command line paste-bin
#28Earlier quoted context omitted.
Just don't use openssl's command line for encrypting anything, there are better tools for that. My guess is that the fixed IV is used because the IV is needed for decrypting, which means either you prepend the ciphertext with it (which means you need to buffer the whole ciphertext in memory, defeating the streaming functionality of the service) or you already know it because it's hardcoded. In any case there is no au…
>which means you need to buffer the whole ciphertext in memory, defeating the streaming functionality of the service Can't you generate an IV, write it out to the stream, then encrypt/write the ciphertext?
Re: PurritoBin: Ultra fast, minimalistic, encrypted command line paste-bin
#29Re: PurritoBin: Ultra fast, minimalistic, encrypted command line paste-bin
#30The author calls this "command line" pastebin. It uses curl and openssl to encrypt and submit. However it uses a Javascript-enabled web broswer to do the retrieval and decryption. Can we use the command line to do the retrieval and decryption? This way, we are not restricted to the ciphers supported by the "Crypto-JS" NodeJS package. Not meaning to take anything away from the venerable Crypto-JS library of "standards…
You have missed the "meow" command.