Reputation: 10219
Can anyone think of a method which would allow for client-side decryption of a publicly available file without the client being able to determine the decryption key? Of course, if the key was in a JavaScript variable then it would be readily available to the user. Any ideas?
Upvotes: 1
Views: 172
Reputation: 33177
You are trying to solve the DRM problem. In short:
All systems pretty much boil down to this problem. It is not secure. At best, you can try to hide the key (obfuscation, custom hardware, etc), but that is not a cryptography problem.
Upvotes: 2