Data decryption "Non-trivial to tear"

Summary / conclusions / solution:

CryptoJS may be what you are looking for

Browser-based cryptography is inherently insecure and should not be relied upon (From this comment )


Context:
I want to distribute a list of web links to specific individuals by sending a file that will be downloaded by the recipient and then saved on their computer or device.
At the same time, I want to provide some level of mitigation from unintended targets from accessing the data in the file.

Purpose:
I am aware of an encrypted PDF, but since I am significantly more familiar with JavaScript and CSS, and links (obviously) require the web browser to open anyway, I am wondering if I can encrypt data (which would be on a couple of kilobytes ) , and then decrypt it from the browser using JavaScript .. p>

Requirements:
I don't mind if I use an encryption-enabled compression library or an encryption-specific algorithm; my only requirement is that the encryption used is "moderately" non-trivial for brutforce (it doesn't have to be secure) and that the data is mathematically / algorithmically useless without a password.

+3


source to share





All Articles