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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:56:30+00:00 2026-06-10T18:56:30+00:00

The question is, what could be the most preferable approach one can follow while

  • 0

The question is, what could be the most preferable approach one can follow while working with encryption and decryption when dealing with different platforms.

As per my knowledge , whenever one wants to work with such scenarios , he/she has to take certain things into account. Like say,

  1. Encryption/decryption Algorithm
  2. Padding pattern
  3. Character Encoding at both sides
  4. Cipher key and block sizes

Certainly ,the Encryption/Decryption algorithm one wants to use must be same at both the sides and i guess i can say the same thing about remaining three things.

Please suggest me the steps to follow while i work with following or similar scenarios.

  1. Encrypting in c & decrypting in java
  2. Encrypting in php & decrypting in java
  • 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-10T18:56:31+00:00Added an answer on June 10, 2026 at 6:56 pm

    One very important aspect for good interoperability is standard compliance.

    Good cryptographic standards come with test vectors. If the two ends implement the same specification and the relevant test cases have been verified, there are much higher chances they will successfully talk to each other.

    For instance, let’s say you need to derive an AES key from a password. If you use openssl, you may be tempted to use the common EVP_BytesToKey function. Unfortunately, that is not a standard derivation algorithm and you will find yourself in troubles if at the other end you don’t have openssl too. Using a standard like PBKDF2 is better, because you have a clear, well-known, and widespread specification for it (RFC2898) that most libraries implement.

    Unfortunately, cryptographic standards tend to focus on the primitives only and it is often necessary to graft together several ones. The "grafting" may prove to be the area where interoperability falls apart. For that reason, I suggest to use the widest possible standardized algorithm, even at the cost of some extra complexity.

    For instance, if you want to encrypt something, it would be good to choose a standard authenticated mode like CCM (defined – amongst others – in RFC3610). In one go you obtain interoperability for:

    • Encryption
    • Authentication
    • Padding
    • Delivery of IV
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question could be a can of worms, but I've always wondered if it
I can see this question (or a similar one) has been asked a few
This could be the most basic json question ever. I'm creating a WCF REST
Question: Why can't I open the database? Info: I'm working on a project using
I realise the answer to this question could be different for different languages, and
This could very well be another silly question, but I can't seem to find
I have another question: Ajax Forms are working well. Most of them need to
Basically the question could more probably be more accurately asked, how do I simply
I understand that this question could be answered with a simple sentence and that
Introduction: Now I know this question could be very broad and it would be

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.