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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:56:35+00:00 2026-06-13T19:56:35+00:00

I have a web service (Java) which requires a password for all cases. But

  • 0

I have a web service (Java) which requires a password for all cases. But the password must be come to me securely. Is there a standard way for all platforms -> java encryption/decryption. How can I decrypt a string which could come a random platform(php,.net,iPhone).

  • 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-13T19:56:36+00:00Added an answer on June 13, 2026 at 7:56 pm

    Usually passwords are encrypted using some algorithm say (MD5) and exchange with services… You don’t have to decrypt password… it’s like you create a MD5 hash string of password and the key is the actual password it self.

    So on server, you would store MD5 hash of actual password and each client will create MD5 hash string of given password and finally you would validate both hash strings for password verification…

    You would easily find java code online to create MD5 hash… one example is

    public static String convertStringToMD5Hash(String string) {
        byte[] hash;
    
        try {
            hash = MessageDigest.getInstance("MD5").digest(string.getBytes("UTF-8"));
        } catch (NoSuchAlgorithmException e) {
            throw new RuntimeException("MD5 not supported?", e);
        } catch (UnsupportedEncodingException e) {
            throw new RuntimeException("UTF-8 not supported?", e);
        }
    
        StringBuilder hex = new StringBuilder(hash.length * 2);
    
        for (byte b : hash) {
            int i = (b & 0xFF);
            if (i < 0x10)
                hex.append('0');
            hex.append(Integer.toHexString(i));
        }
    
        return hex.toString();
    }
    

    Disclaimer: Code works on my machine and may need
    improvement/optimization for production use

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

Sidebar

Related Questions

I have a Java web-service which currently runs on a local tomcat server. I
I have written a web-service (in Java) which produces as a result a (rather
I have a JAX-B java web service which I'm using to update a database.
I have developed a web service in java which contains about 30 operations. Each
We have a Java web service that we call from our application. When we
I have a Java web service and a Java web client making use of
I have a java web service I am trying to support java isn't really
I have created a simple web-service using Java. i want to load jars related
I have created a Java web service and I am trying to access this
I have created a Web Service (with Java, Axis). Depending on the content of

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.