Encryption in PHP

10 pts.
Tags:
PHP
PHP Coding
How do I encrypt the URL in PHP?

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Ben Rubenstein
    Welcome to ITKE, praty. Can you explain a little more about what you are trying to do? Is this related to the other question you submitted about php login codes? Encryption is not always the right solution, as I understand it. 

    6,065 pointsBadges:
    report
  • TomLiotta
    If the URL is expected to be resolved by some remote system, you can't encrypt it unless the remote system can decrypt it. And if it's remotely decrypted and used in a browser, it will be visible. No matter what you send, it's going to be visible. I suppose you could encode a parameter or a part of the URL based on a per session setting and decode it when it comes back.   But you are asking about a specific technical problem that you think will help solve a business problem that you have. You have chosen a technical element that might never work or might cause more trouble than it fixes.   It would be better if you explained what your business problem is so we could suggest good ways to solve it. Attempting to encrypt a URL possibly will not be one of the ways that should be used.   Tom
    125,585 pointsBadges:
    report
  • Subhendu Sen
    As far as my knowledge Base64 is not a form of full encryption. But in case of encoding, base64 is used to encode data so they can be safely transmitted across non-binary safe medium (such as urls / emails), but unfortunately it does not hide the data itself. It is better suggested that, if u  need to do using AES and then using base64 to encode it. This of course will not solve ur probs totally. For more help u can visit here
    28,600 pointsBadges:
    report
  • TomLiotta
    Yes, base64 is an encoding for safe transport across a character interface. But it's not really necessary, just as encryption is not necessary (nor even desirable). What's necessary is something like a session ID. There is no need for an actual URL since the web/application server should know how to direct the connection. -- Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following