ooh. I made an app that encrypts files on Android written in Java and has a C# written client for Windows. I have released the java source code. I should post it here on HN to look at it and rip me a new one. What I am sketchy about is how does embedding an unencrypted salt used for the PBKDF2 in the file not potentially make guessing of the passphrase easier
Show HN: InstantCryptor – AES256 Encryption for Dropbox and Google Drive
41–50 of 52 posts
Re: Show HN: InstantCryptor – AES256 Encryption for Dropbox and Google Drive
#42>> The password will be hashed with the SHA256 algorithm, the mode for encryption is 256 Bit Rijndael/AES SHA256 is not a KDF, AES-256 is not a block cipher mode. Where is the source code?
What's the standard for this kind of thing, PBKDF2 / AES-CBC / HMAC-256? (I went and checked NaCl and it has its own primitives, http://nacl.cr.yp.to/secretbox.html )
Re: Show HN: InstantCryptor – AES256 Encryption for Dropbox and Google Drive
#43>> The password will be hashed with the SHA256 algorithm, the mode for encryption is 256 Bit Rijndael/AES SHA256 is not a KDF, AES-256 is not a block cipher mode. Where is the source code?
Looks like they are using CBC block cipher mode. Guess they updated the site since then. This appears to be the source code: https://instantcryptor.com/js/main.js
var hash = crc.Crypto.Hash.SHA256.hash(password.value)
crypter = new Crypt.Mode.Licobo(new Crypt.Rijndael256(hash))
And it looks like they didn't bother to use a KDF.But I guess when your mode is "Crypt.Mode.Licobo" then that is the least of your problems...
Re: Show HN: InstantCryptor – AES256 Encryption for Dropbox and Google Drive
#44Two things: 1. Cryptor is usually the word used by criminals to describe payload obfuscation to evade antivirus detection. 2. Momma says closed-source crypto is the devil.
2. "Closed source" and javascript don't really work together.
Re: Show HN: InstantCryptor – AES256 Encryption for Dropbox and Google Drive
#45We are using CBC as block cipher mode. I totally understand that open sourcing the complete code is the only way for you to review it and trust it completely. We decided to write a detailed report about the encryption and how we use it and will publish the report soon via Twitter.
> var hash = crc.Crypto.Hash.SHA256.hash(password.value),
> crypter = new Crypt.Mode.Licobo(new Crypt.Rijndael256(hash)),
From the code I cannot see any generation of IV, so I can only assume that the same IV is used every time. A predictable IV leads to many kinds of attacks. In particular, since the key is generated without salting, this means that a combination of the same key and IV will be used for multiple files, completely defeats the confidentiality.
And no integrity protection whatsoever? So vulnerable to bit flipping attacks?
Re: Show HN: InstantCryptor – AES256 Encryption for Dropbox and Google Drive
#46ooh. I made an app that encrypts files on Android written in Java and has a C# written client for Windows. I have released the java source code. I should post it here on HN to look at it and rip me a new one. What I am sketchy about is how does embedding an unencrypted salt used for the PBKDF2 in the file not potentially make guessing of the passphrase easier
To answer your question about the the salt and the PBKDF2: salt ensures that the hash of my password is different from someone else's, even if we use the same password (or I use the same password on another site). Thus, if someone has the hashes, and wants to attack the system, then need to attack each password independently (they can't just run a password dictionary through the PKDF2 (or SHA256 in this case - very b…
Re: Show HN: InstantCryptor – AES256 Encryption for Dropbox and Google Drive
#47Two things: 1. Cryptor is usually the word used by criminals to describe payload obfuscation to evade antivirus detection. 2. Momma says closed-source crypto is the devil.
1. You're confusing "cryptor" with "crypter" 2. "Closed source" and javascript don't really work together.
Re: Show HN: InstantCryptor – AES256 Encryption for Dropbox and Google Drive
#48Re: Show HN: InstantCryptor – AES256 Encryption for Dropbox and Google Drive
#49Earlier quoted context omitted.
1. You're confusing "cryptor" with "crypter" 2. "Closed source" and javascript don't really work together.
I've seen it spelled both ways. Usually on HackForums (a.k.a. the massive script kiddie honeypot).
vs
site:hackforums.net crypter About 62,700 results (0.36 seconds)
Re: Show HN: InstantCryptor – AES256 Encryption for Dropbox and Google Drive
#50@all: thanks a lot for your feedback! It's good to see that so many people care about security. To quickly summarize your questions: We are using the secure CBC mode and have always used it ;) You can have a look on the source code directly on the website (because it's all client side JavaScript), but some parts of it are minified. We are working on a detailed description of the technology behind InstantCryptor and w…