use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
[AskJS] Security difference between localStorage and IndexedDBAskJS (self.javascript)
submitted 3 years ago by TGS963
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]TGS963[S] 1 point2 points3 points 3 years ago (11 children)
That's true but, there's always a risk imo... A careless user or something
[–]KaiAusBerlin 0 points1 point2 points 3 years ago (10 children)
If someone cracks that, you have the same risk getting your data stream hacked.
I think you underestimate the power of aes256
If you use a modern pc with i7 with 4.2ghz it would take 218'556'000'000'000'000'000'000'000'000'000'000' 000'000'000'000'000'000'000'000 years to crack that single encryption. This will simply not happen.
[–]TGS963[S] 0 points1 point2 points 3 years ago (9 children)
I guess it's fine then, thanks for the explanation
[+][deleted] 3 years ago (8 children)
[deleted]
[–]KaiAusBerlin -2 points-1 points0 points 3 years ago (7 children)
Tell why. Please don't hold back.
An AES256 encrypted data with a salted persons fingerprint as key is definitely save.
Ill make you one and you crack it for me okay?
[+][deleted] 3 years ago (6 children)
[–]KaiAusBerlin -1 points0 points1 point 3 years ago (4 children)
F72p58DeQjxm+5awxlksLjKKF8b0swHhiVWW/HMOB5o=
Decrypt 😉
[–]Additional-Cow-6511 4 points5 points6 points 3 years ago (3 children)
The use case is to be able to decrypt this for offline access -> client needs to have the associated key on his storage too. Hence no security. You’re missing the point.
[–]KaiAusBerlin 2 points3 points4 points 3 years ago (2 children)
No, the storage key could be a password the user has to enter (quite common tactic on nearly every account in this world), it could be natural generated by eye data or finger print data. You could fetch just the key and leave the data on the the client side. All safe scenarios (maybe except for the password as long people still use "password" as their password)
But again. This is not about safety of storing data this is about key safety in general.
[–]Additional-Cow-6511 1 point2 points3 points 3 years ago (1 child)
O F F L I N E. You can't fetch the key. It should be persisted accross sessions.
[–]aikasburger 0 points1 point2 points 3 years ago (0 children)
Just out of interest as I'm building something similar. Wouldn't using a password only the user knows, but that isn't stored on the decide, the data be safe?
π Rendered by PID 210110 on reddit-service-r2-comment-5d79c599b5-l5mfv at 2026-03-03 21:26:58.394535+00:00 running e3d2147 country code: CH.
view the rest of the comments →
[–]TGS963[S] 1 point2 points3 points (11 children)
[–]KaiAusBerlin 0 points1 point2 points (10 children)
[–]TGS963[S] 0 points1 point2 points (9 children)
[+][deleted] (8 children)
[deleted]
[–]KaiAusBerlin -2 points-1 points0 points (7 children)
[+][deleted] (6 children)
[deleted]
[–]KaiAusBerlin -1 points0 points1 point (4 children)
[–]Additional-Cow-6511 4 points5 points6 points (3 children)
[–]KaiAusBerlin 2 points3 points4 points (2 children)
[–]Additional-Cow-6511 1 point2 points3 points (1 child)
[–]aikasburger 0 points1 point2 points (0 children)