0

Is it possible to add a password in a USB Flash drive as a security measure by end user so that the data is not visible or tampered by somebody else?

As soon as the USB flash drive is connected to the USB connector, before displaying the data inside the flash drive it should ask for the password which the USB flash drive user had given. In case the owner forgot the password option of resetting the password should be given to him/her.

3
  • 1
    Encrypt your files on USB drive or use tools like VeryCrypt.
    – mentallurg
    Nov 25, 2022 at 7:52
  • 1
    "In case the owner forgot the password option of resetting the password should be given to him/her." - that requires that this whole process be centrally managed with a central user authentication function. So you want personal encryption (decentralised) with centralised control and access? Adding a password is easy (and easily looked up) but your "password reset" requirement is odd.
    – schroeder
    Nov 25, 2022 at 8:12
  • 1
    Some drives with hardware encryption/keypad + admin mode might do what you are looking for e.g. Datashur drives from iStorage.
    – secfren
    Nov 25, 2022 at 9:38

1 Answer 1

1

The answer to the first part of you question ("data is not visible or tampered") is to encrypt the data. You may use file level or disk level encryption.

The answer to the second part of your question ("In case the owner forgot the password option of resetting the password should be given to him/her") is a bit trickier because it depends on the key management approach you prefer to employ; since there are many approaches, you'll have to choose one depending on your needs.

However, resetting an encryption key* is not as straight forward as resetting system access credentials (e.g. the password of your email account). This is because the key is used to encrypt the data that it protects; if you forget it then there shouldn't be a way to decrypt the data (as stated by Kerckhoff's principle). So, in order to reset the password as you mean it, you'd have to be able to re-encrypt the data with the new key - which cannot be done, since you cannot decrypt them in the first place (chicken-and-egg problem).

There are some solutions that address this problem, the first two that I can think of is to use a local password manager (not equivalent to password resetting, though) or a key escrow mechanism.


*I use the terms key and password interchangeably for simplicity, since in its most basic form a password either is the key or is used to derive the encryption key.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .