SHA256 is not a KDF, AES-256 is not a block cipher mode. Where is the source code?
SHA256 is not a KDF, AES-256 is not a block cipher mode. Where is the source code?
BUT before anyone lambasts this guy, it's good the author posted so mistakes can be learned from the feedback, that way others get exposed to the issues, and less mistakes are made in the future. In my opinion, there is too much hate for people who make mistakes when writing code, when in reality that's how you learn. Few people learn all the theory first and THEN how to build it, it's often learn to build then the theory.
It's really hard for a novice to find something that will actually protect them in between all the "convenient cloud solutions" that an intern cobbled together in their lunch break using some javascript they found on github.
I don't see anything wrong with writing security software that is insecure as long as you don't pretend it is secure....
Except this one very much pretends to offer protection, apparently oblivious of the problems with their design.
They should point out very visibly that this is a tech-demo to promote a completely different product, and not an app that anyone should actually use.
The Finnish security company F-Secure revealed a secure cloud service, called Younited (https://www.younited.com/). It did not catch on. The active user amounts stayed at near zero level so it was sold to a company called Synchronoss.
F-Secure initially hoped that their good reputation, and the fact that the servers are located in countries without draconian spying legislation would be enough. They seriously hoped to make a star product out of their secure cloud service.
Well, secure against whom? Simply installing the applications and completing registration process revealed instantly that the service is insecure. Yes, in compliance sense "everything is encrypted", but the keys are clearly held server side. The customer has absolutely no control over the key management and storage, meaning they are at F-Secure's mercy, and F-Secure can technically open everything for authorities.
Now the actually interesting part of the story: The problem isn't the implementation. The problem isn't that they marketed it as secure. The important alpha users on this product area are way too savvy, and stayed away. As per the standard innovation diffusion model, they did not drag other users in. Not marketing the service as secure would have yielded better results!
It's funny how even serious software security companies screw things up. Even when they are attempting for a strategic new product positioning, and even when at near clear blue sea situation.
(I went and checked NaCl and it has its own primitives, http://nacl.cr.yp.to/secretbox.html)
CFRG has been trying for a year to come up with recommendation for TLS 1.3 on how to use 25519 and stronger curves in better primitives than ECDSA. ChaCha20+Poly1305 is getting more progress getting standardized, but still very slowly[0][1][2][3]. If you want to be sane then don't look into how sausages, laws and standards get made.
0 - https://tools.ietf.org/html/draft-agl-tls-chacha20poly1305-0...
1 - https://tools.ietf.org/html/draft-nir-cfrg-chacha20-poly1305...
2 - https://tools.ietf.org/html/draft-irtf-cfrg-chacha20-poly130...
3 - https://tools.ietf.org/html/draft-mavrogiannopoulos-chacha-t...
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...