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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:32:46+00:00 2026-06-11T14:32:46+00:00

I have a very simple encryption class using tripleDES to encrypt the query string

  • 0

I have a very simple encryption class using tripleDES to encrypt the query string for a particular page on my site. I do this to prevent people page scraping sequentially based on our database IDs.

Anyhow, I’ve used
this encryption method

However, it includes 3d% and some other special characters that shouldn’t be in a query string and are rejected by Url Scan for security purposes. There is a = in the actual encrypted string that is generated. I don’t want to change URL scan, but I was wondering if there is a way to limit the encryption characters for the tripleDES crypto provider or something. I know next to nothing about encyrption and I’m really just obfuscating the query string, so I’m open to other options regarding my encryption of the query string.

  • 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-11T14:32:47+00:00Added an answer on June 11, 2026 at 2:32 pm

    The methods you have linked use Base64 encoding to convert the encrypted byte array – which could have all kinds of "non-printable" bytes in it – into a form that will only contain A–Z, a–z, 0–9, +, / and =.

    However, these last 3 are not suitable for URLs.

    You could do a simple String.Replace on the Base64 string, replacing these characters with URL-safe characters, e.g. + => -, / => _ and = => .. You can even drop the = off the end completely, as they are only padding characters. (Making the first two substitutions and dropping the = is suggested by RFC3548.)

    Then simply reverse this replacement when you want to decrypt your string. If you dropped the = completely, add = until the length of the string is a multiple of 4.

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

Sidebar

Related Questions

I have very simple query like this: SELECT * FROM `all_conversations` WHERE `deleted_1` !=
I have a very simple class: People: class People { private string LastName =
I have very simple: [PrincipalPermission(SecurityAction.Demand, Role = Administrator)] public partial class _Default : System.Web.UI.Page
I have this very simple jQuery function: $(.milestone-in-tree).live({ mouseenter: function() { setTimeout( $.ajax({ type:
is it possible to have some sort of very simple reversible encryption in php
I have very simple NetBean Project. It include this controlller line, @RequestMapping(value = /MyDoc.htm,
I have very simple query that calls a UDF which splits a field by
This is a very simple task in every language I have ever used, but
I have very simple form, with input like this: <input id=my_id multiple=true type=file name=image_name[]
I have very simple XML in a string that I'm trying to load via

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.