In Secrets and Lies, Bruce Schneier writes:

Many keys are generated from passwords or passphrases. A system that accepts 10-character ASCII passwords might require 80 bits to represent, but has much less than 80 bits of entropy. [...] This is why it is laughable when companies like Microsoft tout 128-bit encryption and then base the key on the password. (This describes pretty much all of Windows NT security.) The algorithms they use might accept a 128-bit key, but the entropy in the password is far, far less. In fact, it doesn't matter how good the cryptography is or what the key length is; weak passwords will break this system.

As I understand, things such as Windows' file encryption (not BitLocker, but the actual encryption of individual files on a machine which doesn't necessarily have TPM) are based on user's password and probably something else, stored on disk. If an attacker gains access to the hard disk, he won't be able to read encrypted files, because he doesn't know the password.

The security will be good if the user have chosen a passphrase. If the user has a poorly chosen password, the attacker would be able to brute force the encrypted data and gain access within days or weeks.

Now, with Windows 10, Microsoft is promoting the usage of PINs instead of passwords:

Create a PIN to use in place of passwords. Having a PIN makes it easier to sign in to your device, apps and services.

But doesn't it invalidate all the security? As I imagine, it would take seconds to bruteforce data encrypted with a four-digits PIN.

Am I missing something and there is something else which protects the users? Or the PIN feature targets users who think that they don't need any security and won't encrypt their files anyway?

  • It's not that simple. See, for example, the FBI–Apple encryption dispute. The high-level technical details are roughly the same.
    – Brian
    Jan 10, 2018 at 14:48
  • @Brian: I know that the PIN is not a problem for smartphones. Originally, however, I thought that Windows 10 allows to use a PIN on any PC, which would be very different from what is happening with smartphones. David's answer shows that I was wrong. Jan 10, 2018 at 19:13

1 Answer 1


The Hello PIN is only usable on systems with a TPM, and is tied to that TPM. Most likely, a high-security secret is stored in the TPM, and the PIN is presented to the TPM to unlock the secret. TPMs typically allow a finite (and relatively small: 3-10 is typical) of tries to access the data before it is destroyed/reset/overwritten. Unless someone chooses '1234' or their birthday as their PIN (in which case an attacker is likely to guess these early on), this effectively blocks any attempts to brute force the PIN.

Even if the drive is removed from the device, the data would be encrypted with a high-entropy key stored in the TPM, making it impossible for an attacker to recover the data. (This does make me wonder about data recovery on such a device. I assume there is still a "normal" password that can be used as an alternate to the TPM secret, but I am not sure.)

  • About recovery, BitLocker creates a recovery password, and even forces you to save it before actually encrypting the drive.
    – Hey
    Jul 8, 2019 at 11:33

You must log in to answer this question.

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