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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:50:00+00:00 2026-06-15T03:50:00+00:00

I have a something that I want to encrypt and pass it via get

  • 0

I have a something that I want to encrypt and pass it via get in the URL, the value that I want to encrypt is something like ‘019230132_15/10/2012′(a number with a underline followed by a date in brazilian format), when I encrypt this value I get something like ‘cMZns2q7U2vgD9t+zufUeKextc/WyuFB4WyVMQ=’, but passing this via GET on the url is giving me problems cause the browser think that the ‘/’ in the middle of the value is a directory separator, my encription algorithm is something like:

base64_encode(
    mcrypt_encrypt(
        MCRYPT_RIJNDAEL_256,
        md5(self::ENCRYPT_SALT),
        $value,
        MCRYPT_MODE_CBC,
        md5(md5(self::ENCRYPT_SALT))
    )
);

I don’t even wanna know why this is happening, I just want some way that I can encrypt and decrypt a value, it doesn’t have to be the seccurest way that has ever existed, because the information that i am giving does not worth the trouble of hacking it.

EDIT1:Using the PHP function urlencode is not working, I get a error 404 because the url_encode transforms ‘/’ into ‘%2F’, I think it is worth mention that I use mod_rewrite on my Apache

EDIT2: Managed to make urlencode work using it twice like urlencode(urlencode($value)), and decoding twice as well to get the original value

  • 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-15T03:50:01+00:00Added an answer on June 15, 2026 at 3:50 am

    If you are creating the value in PHP (ie, passing the link from PHP to the browser in something like an a tag), use PHP’s urlencode first.

    However, if you are using JavaScript, use javascript’s escape functions, particularly encodeURIComponent

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

Sidebar

Related Questions

I want to parse a html content that have something like this: <div id=sometext>Lorem<br>
I have something like this in my code: worker.setObject(queue.poll()); I want a queue that
I want to have a route that looks something like: www.abc.com/companyName/Controller/Action/Id However, all the
I want to have a template class that looks something like what I have
I want to set layout something like What i thought that i will have
Okay I have something that looks like this: Company Name-1234 I only want the
I want to have something on my site that follows the mouse around, sort
I have a class that I want to contain multiple objects of something I
I have a Map, that I want to persist. The domain object is something
I have something that looks like the following: var someList = MockRepository.GenerateStub<IList<ISomething>>(); someList.Add(MockRepository.GenerateStub<ISomething>()); The

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.