Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8511659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:04:00+00:00 2026-06-11T04:04:00+00:00

I am working on an offline SPA app (which will obviously use only local

  • 0

I am working on an offline SPA app (which will obviously use only local files) which has my main data, a large array of strings, stored in a js file that is loaded with the page. The data is UTF8 (Khmer). I am looking for a way to create a cipher so that the text can be stored in the array in this js file relatively securely. Then, I need to decrypt the strings on the fly using an algorithm that the user cannot ‘crack’ just by looking at the js source, i.e. I need to hide the algorithm. I know this a broad question, but seeing I am working offline, I can’t have access to local files (which could be easily encrpyted) using js. Thanks for any help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T04:04:02+00:00Added an answer on June 11, 2026 at 4:04 am

    Encrypt the data with whatever key and algorithm you like. Obsfucate your js code with one of many, many obsfucators out there.

    Note that anyone who can read js code and can run a prettifier script will be able to figure out what you’re doing and extract the data himself, but that’s about as far as you can get with just software.

    An extra hurdle for the attacker could be made if you store the key off-site (ie, your own server), which the client requests and retrieves at run-time. The attacker can find the key easily using a packet sniffer and turning on the program, but that’s one extra step in your “security by this is not worth my time.”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on an offline only help system which requires loading a large amount
I'm working on a web app which will need to work offline. I'm looking
I am working on an offline-mode iPhone application in which the first time data
I'm working with a app that has both online datastore(GAE) and an offline datastore(HTML5
I'm working on an offline html5 app which does a lot of DOM manipulation
I am working on an App which needs to be tested in both Online/Offline
I am working on offline app for chrome and wondering if there is any
I'm working on iphone application which needs to run offline at an exhibition. It
im trying to create offline desktop application. everything is working fine. The only problem
When working remotely, our team only has access to our source code by remote

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.