Skip to main content
Tweeted twitter.com/StackSecurity/status/1093887269600141314
Clarified purpose in title; edit tags (this has nothing to do with filesystems)
Link
Luc
  • 33.1k
  • 8
  • 81
  • 140

How to save passwords for encrypted filescheck that the user entered the correct password when decrypting a file?

I'm trying to create a program for encrypting/decrypting of different files. I have not problems with the code, iI just don't know how to save athe password for every file, which was encrypted through my program. User

A user can encrypt his filesfile using a password, and when he trytries to decrypt it, there must be somethinga message which showinforms him an information about the incorrect password, because, when he useuses an incorrect password, the program decrypts thawill produce a decrypted file, but it hasn't no matter, because file iswhich will still be unreadable.

I'm trying to create a program for encrypting/decrypting of different files. I have not problems with code, i just don't know how to save a password for every file, which was encrypted through my program. User encrypt his files using password, and when he try to decrypt it, there must be something which show him an information about incorrect password, because, when he use incorrect password, program decrypts tha file, but it hasn't no matter, because file is still unreadable.

I'm trying to create a program for encrypting/decrypting different files. I have not problems with the code, I just don't know how to save the password for every file, which was encrypted through my program.

A user can encrypt his file using a password, and when he tries to decrypt it, there must be a message which informs him about the incorrect password, because, when he uses an incorrect password, the program will produce a decrypted file, which will still be unreadable.

Source Link

How to save passwords for encrypted files?

I'm trying to create a program for encrypting/decrypting of different files. I have not problems with code, i just don't know how to save a password for every file, which was encrypted through my program. User encrypt his files using password, and when he try to decrypt it, there must be something which show him an information about incorrect password, because, when he use incorrect password, program decrypts tha file, but it hasn't no matter, because file is still unreadable.