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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:43:09+00:00 2026-05-22T23:43:09+00:00

I want to encrypt my uri segments that are passed as IDs to query

  • 0

I want to encrypt my uri segments that are passed as IDs to query into database tables.

For example I’m using

$id=urlencode($this->encrypt->encode($user['id']));

which is decode on another controller using

$id_decrypt=$this->encrypt->decode(urldecode($id));

I have tested the encryption and decription and it seems to work. However on trying the urls eg.

http://localhost/app_name/index.php/profile/view_profile/b98N98YNqoEA7yI1tavIY1s51RhiSHKGCFarU4A6XgFUMB%2BI3KwiEA23h1XITmkq1qPABqGs8e1sdP16v4og8g%3D%3D

on some of the url it will work as expected but on some it will give browser error 404 (Object not found). On deleting the encrypted segment, I can access the index function. What could be the possible cause of 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-05-22T23:43:10+00:00Added an answer on May 22, 2026 at 11:43 pm

    Within the file ./application/config/config.php there is a section for permitted uri chars. The default characters are:

    $config['permitted_uri_chars'] = 'a-z 0-9~%.:_-;
    

    In some projects, I have changed this too:

    $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\'+,-=';
    

    However, as the CodeIgniter Engineers state

    DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!

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

Sidebar

Related Questions

I want to encrypt the SQLite database in my QT application. This tutorial: http://www.qtcentre.org/wiki/index.php?title=Building_QSQLITE_driver_with_AES-256_encryption_support
I am using visual studio 2010 my project is that, i want to encrypt
We want to encrypt all our web app configuration files that we deploy to
I want to encrypt a URL variable so that the user can't see the
This is a basic security app and i just want to encrypt & decry-pt
I want that user/attacker to encrypt the data and send to server. Now I
i want to encrypt the data. still i am following to do this on
I want to encrypt some server data using .NET's RSACryptoServiceProvider and decrypt it when
I want to encrypt a filename but ensure that the encrypted filename doesn't contain
I want to encrypt sql server database files (2008) I want to make a

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.