I am using CryptoJs to encrypt files on client side before uploading to a server. Encryption and decyption is working, but my question is how secure is this. In my javascript, I pass the 'secret passphrase' as the argument to the encrypt function. All I am using for decryption is also the same passphrase. So, if someone can get hold of this 'secret passphrase', can't they easily decrypt the data?
Crytpjs:
var encrypted = CryptoJS.AES.encrypt("Message", "Secret Passphrase");
var decrypted = CryptoJS.AES.decrypt(encrypted, "Secret Passphrase");