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
javascript encryption


source to share


No one has answered this question yet

Check out similar questions:

7649
How does JavaScript blocking work?
7494
How can I remove a specific element from an array in JavaScript?
7432
How to check if a string contains a substring in JavaScript?
7287
What does "use strict" do in JavaScript, and what are the reasons for it?
5722
How can I remove a property from a JavaScript object?
5670
Which operator is equal (== vs ===) should be used in JavaScript comparisons?
5101
What's the most efficient way to deeply clone an object in JavaScript?
4829
How do I include a JavaScript file in another JavaScript file?
4380
For each by an array in JavaScript?
3842
Create GUID / UUID in JavaScript?



All Articles
Loading...
X
Show
Funny
Dev
Pics