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 5844705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:19:51+00:00 2026-05-22T12:19:51+00:00

I am programming some server-client software and wanted some encryption. Both the server and

  • 0

I am programming some server-client software and wanted some encryption. Both the server and client share a private key which is fixed length. Haven’t decided what length I am going to have the key, but I do know that the key will be between 1 and 32 characters. The key is predetermined (so for instance I may decide I want the key to be abc1234)

I am programming in Java and need the algorithm to be a quick as possible as the clients are most likely to be mobile devices. I don’t need any compression but I would prefer if the encrypted string wasn’t larger.

I am not looking for top-notch encryption here obviously, but it is my understanding that any key based encryption can’t be broken without knowledge of the private key anyway.

Can anyone recommend me an algorithm/method for encryption/decryption with a shared private key?

  • 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-22T12:19:52+00:00Added an answer on May 22, 2026 at 12:19 pm

    it is my understanding that any key based encryption can’t be broken without knowledge of the private key anyway

    That’s not even close to true. A lousy algorithm absolutely can be broken without knowledge of the private key.

    Anyhow, if there’s a shared key, consider AES.

    And read up on the JCE/JCA as Java can do AES and other types of encryption out of the box. Much better than rolling your own.

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

Sidebar

Related Questions

I'm trying to learn how to do some very simple client-server application programming. Basically,
Some programming languages such as Java and C# include encryption packages in their standard
I need some feedback with some programming logic. I'm developing a TCP Server using
I am programming a Client/Server application for my project in C++. The whole application
I'm looking for some programming guides to C# GUI design. I come from the
Are there some practical programming situations for someone to declare a class abstract when
I've studied C programming in college some years ago and have developed some medium
I've been doing some socket programming to transmit information across the wire. I've run
I was running some dynamic programming code (trying to brute-force disprove the Collatz conjecture
I am currently doing some socket programming using C/C++. To be able to use

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.