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

  • SEARCH
  • Home
  • 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 6985727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:43:00+00:00 2026-05-27T18:43:00+00:00

I’m looking for a secure symmetric-key encryption algorithm compatible with both JavaScript and Java.

  • 0

I’m looking for a secure symmetric-key encryption algorithm compatible with both JavaScript and Java.

I’ve tried implementing one but I had some encoding issues.

  • 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-05-27T18:43:01+00:00Added an answer on May 27, 2026 at 6:43 pm

    You don’t want to encrypt with JavaScript, especially on the client-side where it is open to tampering, and has no cryptographically secure random number generator.

    I’ve tried implementing one but I had some encoding issues.

    You tried to write your own encryption algo? You’ve gone against everything that the security world hold dear. No. Actual tutorials that explain how encryption works are so scared that people are going to screw things up because they don’t understand the math behind it, I’ve actually seen this in one of them:

    enter image description here

    If you don’t understand encryption, things like, what "cryptographically secure pseudo random number generator" actually is, and common attacks on it, you shouldn’t do that.

    If you don’t understand things like side-channel attacks, you shouldn’t do it.

    If you don’t understand what’s going on in crypto and have read at-least two books on it you have no business implementing it.

    Crypto is not a magic black box, it’s something that is very VERY easy to screw up, even without touching any bit of code in a packaged solution.

    What should you do? Forget about JS encryption. I know, I’ve tried it myself. It’s a waste of time. Learn from my mistakes.

    Go get an SSL certificate, SSL is the best way for us to encrypt messages on the transport level from a server to a client. It’s about as secure as you can get. If you face an advesary that can defeat SSL, trust me, your JS-based crypto is also compromised.

    Once it’s at the server where it’s secure from being tampered with, encrypt it. Anything else is a really long way to waste your time.

    Also, go read these books:


    ![This one is free][4]


    [![This one is cash money][5]][5]
    (source: [schneier.com](
    https://www.schneier.com/images/book-ce-150w.jpg))

    Then when you understand them come back and scream at me about why I’m wrong and don’t understand how much you need JS on the client to do crypto.

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

Sidebar

Related Questions

I am reading a book about Javascript and jQuery and using one of the
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I used javascript for loading a picture on my website depending on which small
Seemingly simple, but I cannot find anything relevant on the web. What is the
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I need to clean up various Word 'smart' characters in user input, including but

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.