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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:02:54+00:00 2026-05-29T05:02:54+00:00

How do I serialize an array of characters to a file? The whole reason

  • 0

How do I serialize an array of characters to a file? The whole reason I’m doing it is so that you can’t just open up the file and edit the data but what I’m about to tell you shows otherwise. I create an array of characters and set arr[0] to ‘a’, arr[1] to ‘b’, and arr[2] to ‘c’. I then use .NET to serialize the array. I run it, open the file and it reads this:

As stated above I don’t want someone to just open up the file and edit the data but this clearly shows it’s possible.

Code:

arr[0] = 'a';
arr[1] = 'b';
arr[2] = 'c';

FileStream stream = new FileStream(Application.dataPath+"/testing.wld", FileMode.Create);
BinaryFormatter bFormatter = new BinaryFormatter();

bFormatter.Serialize(stream, arr);
stream.Close();

How do I fix this? Thanks.

  • 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-29T05:02:58+00:00Added an answer on May 29, 2026 at 5:02 am

    You are not asking about serialization. You are asking about obfuscating / schiffering / more advanced sollutions.

    If you want to use the built-in serialize classes in .NET you will have to implemented your own (XML)Writer/Reader – implement a obfuscating routine of choice in this function and make sure its 1:1.

    But it will of course not be “safe”, just delay the penetrator for a while.

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

Sidebar

Related Questions

So I have a large 2d array that i serialize, but when I attempt
I have a large 2d array that I serialize and base64_encode and throw into
How can I serialize an array or an object and then save it into
I have a character array that contains serialized data that I need to interpret
I am using BinaryFormatter to serialize an array of class instances to a file.
Is it possible to serialize an object into a string or a byte array
I would like to serialize and deserialize objects without having to worry about the
I am able to serialize an object into a file and then restore it
I need to serialize a huge amount of data (around 2gigs) of small objects
I'm writing an error handler script which encrypts the error data (file, line, error,

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.