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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:06:36+00:00 2026-06-15T21:06:36+00:00

I have an encryption service (.Net Class Lib) now i have to port it

  • 0

I have an encryption service (.Net Class Lib) now i have to port it to java, as far as the encryption and decryption goes both the services are serving fine but the problem is that i have to save the encrypted value in the database and the encryption value generated by the java service must match the value generated by the .Net class lib.

Now if i encrypt a value say android both the services generate different encrypted values. What are the possible workarounds or thing to look for…

  • 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-15T21:06:37+00:00Added an answer on June 15, 2026 at 9:06 pm

    An encryption system generally has these parameters:

    • The algorithm
    • The encryption key (and if applicable, an initialization vector)
    • The cipher block mode

    A system can be developed using any language and on any platform, and provided those three things are the same then the outputs from any implementation will be identical. Things like platform endianness don’t matter as algorithms should use the byte as the base unit.

    Ergo, if you’re getting different outputs for the same input then one or more of those things is wrong 🙂

    If you have developed your own encryption system (e.g. implemented 3DES yourself) then that’s probably where your mistake is. Always leave the implementation of cryptosystems to academic professionals.

    I’m going to assume you correctly set the keys and IV, which leaves the cipher block mode – which is the most plausible explanation as different platforms have their own defaults.

    However, if you’ve verified that all of those things are the same in both your .NET and Java implementation, then you should repost your question but with more details, including relevant source code.

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

Sidebar

Related Questions

We have an encryption service that we've exposed over net. tcp. Most of the
I have made simple encryption/decryption method in php that I'm trying to move to
I have a class of encryption that was developed in Microsoft Visual C++ 6.0,
I need a CORE that will perform AES-128 Encryption/Decryption. I have searched online but
Recently, I have to convert an java project related to rsa/des encryption into an
I have a Web Service written in .NET that provides data for an iPhone
I have a .Net web service that processes AES encrypted data. The consumers of
I have a web service (Java) which requires a password for all cases. But
I have a website in which I am migrating membership from ASP.NET services to
I have written a util class in Java for webservice call. My util class

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.