DIY Windows Login Key

DIY Windows Login Key

- in DIY
Comments Off on DIY Windows Login Key

Are you fed up with windows asking you for
your password whenever you login?

Well you can set up a pin; it is easy to remember right?

However, a pin it’s not that secure, especially if you are using your laptop in public it is easier to catch than your 16 mixed digits upper and lower cases with symbols password.

So why don’t you use a USB stick to login?

Well probably, you had that idea already as authentication keys are available on the market but they are not cheap. In addition, a software solution to turn your regular thumb drive is not free as far as I know, and you are not going to be able to use it as storage anymore.

So what is the solution?

Well my friend it is the Attiny85 microcontroller. Precisely the USB model from Digispark.

So let us jump into the requirements to achieve this.



Alongside with the computer that you want to login to you need:

1x Digispark attiny85 USB (type A)


Arduino IDE

Attiny85 Arduino board library

Digispark Drivers

Step 1: Installing Arduino IDE

(For those who already have it installed on their machine you should skip to the next step)

First, let us begin with installing Arduino IDE.

Download the latest version from here and continue the installation process.

Step 2: Setting Up Digistump AVR Boards

Now that you installed Arduino IDE, installing the board library is necessary.

That way you will be able to upload your code to the Attiny85 microcontroller.

Please note: if you have already a version of Arduino IDE installed do not make the mistake of replacing your existing URL or your existing extra boards will disappear although they still on your drive, you should append the list.

You need to update your board URLs adding the following URL:

then head to tools>boards manager> and search for esp and install it.

Step 3: Installing Digistump Drivers

Now that we set up Arduino IDE let us install the microcontroller driver:

Download and extract the driver files and simply run DPinst.exe or DPinst64.exe depending on your system as shown

Step 4: Programming

Therefore, now that everything is set we are ready to start programming.

The code is pretty much just a few lines in which we call the “keyboard” library. Then we set what is going to happen each time when we plug our Attiny85 USB into the computer



About the author

23, Tunisian, Student With big ambitions, passionate about blogging. Interested in technologies and high-tech always searching to improve and learn from my faults