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

  • Home
  • SEARCH
  • 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 8124005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T06:20:17+00:00 2026-06-06T06:20:17+00:00

My encryption application (written in C# & GTK# and using Rijndeal) takes a string

  • 0

My encryption application (written in C# & GTK# and using Rijndeal) takes a string from a textview to encrypt, and returns the result in a Byte array. I then use Encoding.Unicode.GetString() to convert it to a string, but my output doesn’t look right, it seems to contain invalid characters: `zźr[� ��ā�֖�Z�_����
W��h�.

I’m assuming that the encoding for the textview is not Unicode, but ASCII doesn’t work either. How can I ensure that the output is not invalid? Or is my approach wrong to begin with?

I’m new to C# and not very experienced with programming in general (I have decent skill in PHP and know a little JavaScript, but that’s about it) so if you could baby-down your answers it would be much appreciated.

Thank you in advance for taking the time to assist me.

  • 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-06T06:20:19+00:00Added an answer on June 6, 2026 at 6:20 am

    While every string can be represented as a sequence of bytes using UTF-16, not every sequence of bytes represents a UTF-16 encoded string. Especially if the sequence of bytes is the result of an encryption process.

    You can use the Convert.ToBase64String Method to convert the sequence of bytes to a Base64 string.

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

Sidebar

Related Questions

In my application I am using encryption and decryption. Before entering the string in
Our application needs to encrypt/decrypt files using (for instance) Blowfish encryption algorithm. We know
I've written Encryption/Decryption methods using the RC2CryptoServiceProvider in C# and for some reason, I
I've written an encryption program that encrypts and decrypts selected files using a user-entered
In a web application written in Perl and using PostgreSQL the users have username
I'm using DES-ECB + base64 encryption in my application. That's the code of the
I have a web application written using CherryPy, which is run locally on 127.0.0.1:4321
Background:I am working on an encryption application, i have the app written in Objective
I need help on encryption/decryption on Android application. I explain the situation. I'm actually
What encryption method does the .NET FormsAuthentication.Encrypt() method use? There's no mention in the

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.