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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:25:45+00:00 2026-06-09T18:25:45+00:00

I recently did a website for my company using ColdFusion 9. The issue I

  • 0

I recently did a website for my company using ColdFusion 9. The issue I am having is with the ColdFusion encryption/decryption function. On certain strings that I decrypt I get these weird special characters that show up.

Example:

MK/_0 <—Encrypted String Outputted

�#5&z <—Decrypted String Outputted

I’m not sure why this is happening (and only on certain strings that get decrypted).

Here is the code:

<cfset ccNum = decrypt(getCCInfo.CUST_CARDNUMBER,myKey)>
  • 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-09T18:25:47+00:00Added an answer on June 9, 2026 at 6:25 pm

    Ok, well first, I have to point out that by not specifying an encryption algorithm you are using very POOR encryption. So you’ll need to fix that. Second, you should probably be using some encoding to make your crypto storage more reliable.

    So try this code.

    <cfset key = generateSecretKey("AES") />
    
    <!--- Set the ciphertext to a variable. This is the string you will store for later deciphering --->
    <cfset cipherText = encrypt(plaintext, key, "AES/CBC/PKCS5Padding", "HEX") />
    
    <cfoutput>#cipherText#</cfoutput> 
    
    <!--- Then when you decrypt --->
    
    <cfset decipherText = decrypt(cipherText, key, "AES/CBC/PKCS5Padding", "HEX") />
    
    <cfoutput>#decipherText#</cfoutput>
    

    The above code will use a strong crypto algorithm and will put the ciphertext into a much easier to store format than the gibberish you showed as an example above. That way when you store it, it will be more reliable when you retrieve it again.

    Here is an example of what the string will look like:

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

Sidebar

Related Questions

I'm not a hardcore programmer, but I did develop a company website using MS
I recently did some website analysis On My Site to find that 90% of
I re-did my portfolio site recently, and I'm trying to make it so that
I recently did some refactoring of my mvc application and realized that there are
I had been using eclipse in Ubuntu 9.10 without any problems. Recently I did
I recently was requested to put together a Flash site. Since I did that,
I recently did a project on Android 3.2 to send strings to a server
I recently did an overhaul of a website in which we switched to a
I recently did a Oracle to SQL Server 2008 R2 Migration. The PL/SQL stored
I recently did an online installation of SP1 for VS 2008, where installation of

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.