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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:16:36+00:00 2026-06-17T21:16:36+00:00

I currently have a set of AES Encryption/Decryption functions that I use in ASP.NET

  • 0

I currently have a set of AES Encryption/Decryption functions that I use in ASP.NET for all of my cryptographic needs. I then pass these data in apps back and forth to another secure application that I have no control over. Everything is sent in strings, and the strings are sent to and from these apps with an ASCII encoding.

Now I am working with a pre-existing Silverlight app, where I have a need to add encrypt/decrypt functionality to data, but I will still be sending to this other secure application (over which I have no control) that uses ASCII encoding. Since Silverlight uses UTF-8, this seems like it might be a problem. I know enough about encodings to know how ASCII and UTF-8 are alike and different (0 through 127 are the same in each, but UTF-8 has many more characters). Are there any risks to encrypting/decrypting in UTF-8 on my end if I am going to be sending/receiving data to/from an app that uses ASCII? (My app will not be using any non-standard characters before the encryption)

Also, should I:

  1. Use a Service Reference in Silverlight that has my ASCII encryption/decryption functions? OR
  2. Encrypt/Decrypt in UTF-8 inside Silverlight app, no service reference required?
  • 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-17T21:16:37+00:00Added an answer on June 17, 2026 at 9:16 pm

    while it’s bad from an i18n perspective, if can be reasonably sure that your input is going to be only in the range of normal ascii characters, you shouldn’t have a problem.

    You can add the code from this SO answer to give you some extra protection — converting non-ASCII safe UTF-8 characters to a ‘?’, returning a byte array you can feed into your encryption method.

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

Sidebar

Related Questions

I currently have a set of divs (buttons) that all hover various colors using
Currently I have a site that is set up using a masterpage and a
I currently have a set of json data that I wish to filter through,
I Currently perform a large amount of encryption/decryption of text in c# using AES.
I currently have a set of buttons that I would like to set triggers
I currently have this set up and working fine inside a users folder. RewriteEngine
I currently have Magento set up on a development server (remote, SSH access) and
I currently have a set of tabs, each tied to a fragment, and I've
I currently have my code set to disable the submit button when the field
I currently have a .htaccess file set up with this rule: RewriteRule ^([a-zA-Z0-9_-]+)$ user\.php?user=$1

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.