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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:52:19+00:00 2026-05-23T10:52:19+00:00

I am using the following code. The key and vector are copied from the

  • 0

I am using the following code. The key and vector are copied from the web. No secrets there.

    private static byte[] key = { 123, 217, 19, 11, 24, 26, 85, 45, 114, 184, 27, 162, 37, 112, 222, 209, 241, 24, 175, 144, 173, 53, 196, 29, 24, 26, 17, 218, 131, 236, 53, 209 };
    private static byte[] vector = { 146, 64, 191, 111, 23, 3, 113, 119, 231, 121, 221, 112, 79, 32, 114, 156 };
    private ICryptoTransform encryptor, decryptor;
    private UTF8Encoding encoder;

    public SimplerAES()
    {
        RijndaelManaged rm = new RijndaelManaged();
        encryptor = rm.CreateEncryptor(key, vector);
        decryptor = rm.CreateDecryptor(key, vector);
        encoder = new UTF8Encoding();
    }

Can someone explain what’s the meaning of the settings for key and vector. I would like to privately code up the way my data is encrypted but I am not sure where to start.

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-23T10:52:19+00:00Added an answer on May 23, 2026 at 10:52 am

    The key is simply your encryption key, the passphrase that someone needs to decrypt the data. AES is a symmetric cipher, so the same key will be used both for encryption and decryption.

    The initialization vector (IV) is a technical detail: when using a block cipher in CBC mode, the ciphertext for each input block depends on the ciphertext for the previous input block (and also on the current input block and the key, of course). However, when trying to encrypt the first block there is no “previous” data to take into account; the IV takes the place of the ciphertext for the “0th” input block in this case.

    In practice, this means that when decrypting, it’s also necessary to know the IV in addition to the key. However the IV is not sensitive information, and you can simply store it along with the ciphertext (thus making the key the only information you need to decrypt that you do not already have).

    Note: It’s good practice to not use the same IV multiple times; you can simply generate a random one each time you need to encrypt something.

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

Sidebar

Related Questions

The following code is a try to encrypt data using AES with asymmetric key:
I'm using following code but cannot return data from MySQL. This is the output:
Using the following code, I'm retrieving a list of Integers from a DB and
Using the following code: Private Sub MakeMeSomeXmlBeforeRyanGetsAngry() Dim db As New MyDBDataContext Dim customer
I am adding a registry key using the following code: var key = Microsoft.Win32.Registry.LocalMachine.CreateSubKey(key);
Im using the following code to read to consumer_key and consumer_secret from config.php, pass
I'm using the following code to encrypt files in cocoa: - (NSData *)AES256EncryptWithKey:(NSString *)key
I have upload the video on facebook using following code Help From : https://github.com/zoul/facebook-ios-sdk/
I am using the following code to delete a file from my S3. But
I am able to split strings in the format key:value; using the following code:

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.