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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:56:03+00:00 2026-06-08T07:56:03+00:00

I am newbie to C# and I have a task to encrypt the files

  • 0

I am newbie to C# and I have a task to encrypt the files in C# and put it onto server (Mentioned that use 256-bit AES encryption). Whoever wants it, they should Decrypt it first and then use it.

But I have some doubts related to it as: I am using AESCryptoServiceProvider Class. In that I am using the method CreateEncryptor(Byte[], Byte[]). But the question I want to ask is, If I encrypt the file using key as well as IV, then I have to share the both with the user Key and IV.

What should I do in such case? I want that I should use only key at the time of encryption and decryption. How can I do that?

I am totally confused about it. Please suggest me some steps over it.

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-06-08T07:56:06+00:00Added an answer on June 8, 2026 at 7:56 am

    As far as i know, the IV doesn’t need to be secret, so you could store it together with the encrypted data on the server. Just make sure that each IV is random and that you don’t reuse them.

    For more details on the IV, look here:
    http://en.wikipedia.org/wiki/Initialization_vector

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

Sidebar

Related Questions

I am a newbie on Amazon Web Service. I have a task that setup
I'm a bit of a NuGet newbie and have come from the Maven world.
I'm brand new to SQL Server 2008, and have some newbie questions about the
I have a little newbie problem that I cannot figure out, I am having
This is probably obvious, but I'm a bit of a newbie and have spent
Please help me in achieving above task.I'm newbie to openCV. I have OpenCV 2.2
I have such task - to create control that union two controls (DataGrid from
I have a BackgroundWorker that runs a lengthy and semi-complex task. In this BackgroundWorker,
I have a Sql Server 2008 Express database file that's currently being used by
We have several SQL Server databases containing measurements from generators that we build. However,

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.