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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:41:00+00:00 2026-06-14T04:41:00+00:00

The following is a sample encryption in asp sent to a .jsp page for

  • 0

The following is a sample encryption in asp sent to a .jsp page for decoding and processing the data,

requestparameter = "somedata";
Key = "someKey";
requestparameter = AES128Bit.encrypt(requestparameter, Key);

<form name="form1" method="post" action="https://someurl/somepage.jsp">
    <input type="hidden" name=" requestparameter " value="<%= requestparameter %>">
    <input type="submit" name="submit" value="Submit">
</form>

I am trying to do the similar encryption in PHP by following :-

$requestparameter = "somedata";
$Key = "someKey";
$method = 'aes128';
$requestparameter = openssl_encrypt ($requestparameter, $method, $Key);

<form name="form1" method="post" action="https://someurl/somepage.jsp">
    <input type="hidden" name=" requestparameter " value="<?php echo $requestparameter ?>">
    <input type="submit" name="submit" value="Submit">
</form>

I have enabled OpenSSL support.

But the target page always shows

Error while decoding

The url shows an errorcode like the following

pageUrl?errorCode=isDecoded

I think this means that the encryption method that I am using to encrypt in PHP can not be properly decoded by the .jsp page. My question is…

What will be the ASP equivalent PHP encryption method/code for this?

  • 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-14T04:41:01+00:00Added an answer on June 14, 2026 at 4:41 am

    Try using the php mcrypt function instead, that might work. Mcrypt and and openssl_encrypt will return different results, even when using the same encryption methods as they work slightly differently. Compare the output of the ASP function to the results of the two methods in PHP and see if one of them returns the same results.

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

Sidebar

Related Questions

I have the following sample data: Id Name Quantity 1 Red 1 2 Red
I have the following sample of data to insert into tables(from parent to child,
How can you use the following sample data either with a foreach or while
My table column contains following sample data: /Users/abct2/Library/Application Support/iPhone Simulator/4.3/Applications/FD301781-D39F-469E-A604-8164CC9A4493/Library/Caches/List3-ROHAN TEST1/word_306:24:50.jpg Now, I want
I have the following sample xml in a column of xml data type: <diagnostics
i have the following sample data with duplicate information: ID Date Emp_ID Name Keep
I have the following (sample)code to filter search results from a LLBLGen data source:
I have the following sample xml: <data> <products> <product> <section>Red Section</section> <images> <image>img.jpg</image> <image>img2.jpg</image>
I have the following sample code and noticed that if I attempt to use
I wrote the following sample code to see how ARC works @property (nonatomic, weak)

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.