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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:21:06+00:00 2026-06-06T14:21:06+00:00

I have a desktop application where the user has a library of encrypted ZIP

  • 0

I have a desktop application where the user has a library of encrypted ZIP files. The configuration file holds the master password to decrypt these ZIPs. The idea is that the user enters the program password they chose when they installed the application to open the program and that password is used to decrypt the master password stored in the configuration file.

The main point of all of this security is that even if someone had access to the hard disk and user’s Windows account, they still can’t get inside the ZIP files without their password, ideally.

To validate the program password the user typed in I’m using the C# hashing code (converted to VB) from here (at the bottom of the page):

http://crackstation.net/hashing-security.htm

So far so good. We’re only storing a hash of the program password, so a hacker couldn’t read it by looking at the config file.

Now, I’m trying to implement encryption as found here:

http://msdn.microsoft.com/en-us/library/yx129kfs.aspx

Actual Question:

So which of the following gets stored as plain text in the config file to be used to decrypt the ZIP master password at runtime with the program password the user entered?

  • The salt used to generate the encryption key (can this be the same as
    the salt used to hash the password as above?)

  • The initialization vector (IV)?

  • The encryption key? (Probably not…) (k1 in MS’s example)

  • The decryption key? (k2 in MS’s example)

In MS’s example, they’ve got the encryption and decryption all jumbled up together… I’ve got a lot of pieces but I don’t know how to put them together…

Update

I’ve read that AES encryption is more secure than the Triple DES encryption MS is using in their example above. Seeing that we’re using AES on the zip files, it would be nice to use AES for the ZIP file password too.

So, how can I combine this AES example:

http://msdn.microsoft.com/en-us/library/system.security.cryptography.aescryptoserviceprovider.aspx#Y2300

With PBKDF2 to generate the encryption key?

  • 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-06T14:21:08+00:00Added an answer on June 6, 2026 at 2:21 pm

    You need to store the salt and iteration count for the PBKDF function (which must not be the same salt used to hash the password).

    The key would be the result of PBKDF, which, for a given salt and iteration count, is fixed.

    You also need to store the IV.
    If you want to, you can use a (PBKDF) hash of the password using a third (stored) salt as the IV.

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

Sidebar

Related Questions

I have a simple Desktop Facebook application that allows the user to retrieve some
Desktop window application. I have textbox in which user give values in numbers. what
I have one desktop application which was implemented in C#. This app uploads file
I have a small (desktop) application which basically consists of an user-friendly CRUD interface
I have application that needs to load local html file if user is offline,
I have a desktop application that will 'sync' with an iPhone application. The sync
I have a desktop application that needs to upload/download images to/from service computer over
I have a desktop application (C# .NET 3.5) that uses a SQL server for
We have a desktop client application developed in Swing. This application interacts with backend
I have a VB6 desktop application that is deployed on well over 1200 desktops.

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.