{"id":13413,"date":"2024-11-21T01:44:09","date_gmt":"2024-11-21T06:44:09","guid":{"rendered":"http:\/\/engineersgarag-main\/atmega-32u4-based-password-generator-part-6-25\/"},"modified":"2024-11-21T05:46:04","modified_gmt":"2024-11-21T10:46:04","slug":"atmega-32u4-based-password-generator-part-6-25","status":"publish","type":"post","link":"https:\/\/www.engineersgarage.com\/atmega-32u4-based-password-generator-part-6-25\/","title":{"rendered":"Atmega 32u4 Based Password Generator (Part 6\/25)"},"content":{"rendered":"<p style=\"text-align: justify;\">Like computers have become part and parcel of daily lives, the passwords have too. From operating systems to website logins, the most common and secured way to get access is the password protection. The passwords just serve like the keys. Like the keys open physical locks, the passwords open the digital locks for access to operating systems and other software or website. \u00a0Generally users need to type the password in a textbox and press some button to get access to OS, software or website. While typing the password, it can be seen by an onlooker or tracked by key logging. This project is a USB device that will store the user passwords and print it out to a login window just by pressing a single button.<\/p>\n<p style=\"text-align: justify;\">The project is an USB Plug and Play device that works like an automated keyboard thus saves the password being stolen by looking one type it or key logging software. The project has been built on <a href=\"https:\/\/www.engineersgarage.com\/contributions\/atmega-32u4-based-generic-usb-keyboard\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Atmega 32u4 based Generic USB Keyboard project<\/strong><\/a> which was based on making a generic USB Keyboard.<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" title=\"Prototype of Arduino Based USB Digital Password Generator \" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/07\/Prototype-Arduino-Based-USB-Digital-Password-Generator.png\" alt=\"Prototype of Arduino Based USB Digital Password Generator \" \/><\/p>\n<p style=\"text-align: center;\"><em>Fig. 1:\u00a0Prototype of Arduino Based USB Digital Password Generator\u00a0<\/em><\/p>\n<p style=\"text-align: justify;\">The project will be called password generator and it will store password and print it to a password box on pressing a single button. The project utilizes 8-bit USB AVR &#8211; Atmega 32u4 as the USB controller chip and uses AVR based Lightweight USB Framework (LUFA) as the firmware which is modified to retrieve password on USB.<\/p>\n<p style=\"text-align: justify;\">The LUFA firmware is used and its HID device driver class for keyboard is modified to program the project. The firmware is modified to pre-store a password and automate the process of typing it. The device works with all the desktop and mobile operating systems and applications. It can also be used with any browser.<\/p>\n<p style=\"text-align: justify;\">The project uses a tactile switch to receive call to action while Atmega 32u4 is the controller chip (on board Arduino Pro Micro) and USB cable is used to connect with the personal computer.<\/p>\n<h4 style=\"text-align: justify;\">PREREQUISITES<\/h4>\n<p style=\"text-align: justify;\">This project is based on Arduino Pro Micro which has the USB AVR &#8211; Atmega 32u4 as the sitting MCU. In order to understand this project, one must have basic knowledge of the AVR microcontrollers and the embedded C programming for AVRs. WinAVR Studio is used to write, edit and compile the project code, so closely following the project shall require familiarizing with the above stated IDE as well. Though LUFA framework takes care of implementing the USB protocol and has APIs to abstract the lower level codes, <strong>understanding USB protocol<\/strong> is recommended to understand how actually the project is working. In fact, if anyone has already worked on some other microcontroller, it will not be much pain to understand and follow this project as the project code is more or less about getting input from the GPIO pins of AVR MCU and modifying the LUFA device driver of generic keyboard accordingly.<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" title=\"Image showing Arduino based USB Digital Password Generator being used to login Facebook\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/07\/Image-Showing-Arduino-Based-USB-Digital-Password-Generator-Login-Facebook.jpg\" alt=\"Image showing Arduino based USB Digital Password Generator being used to login Facebook\" \/><\/p>\n<p style=\"text-align: center;\"><em>Fig. 2:\u00a0Image showing Arduino based USB Digital Password Generator being used to login Facebook<\/em><\/p>\n<h4 style=\"text-align: justify;\">COMPONENTS REQUIRED<\/h4>\n<p style=\"text-align: justify;\">1. Arduino Pro Micro<\/p>\n<p style=\"text-align: justify;\">2. Breadboard<\/p>\n<p style=\"text-align: justify;\">3. Connecting wires<\/p>\n<p style=\"text-align: justify;\">4. Push button<\/p>\n<p style=\"text-align: justify;\">5. Micro USB cable<\/p>\n<p style=\"text-align: justify;\">6. 10K resistors<\/p>\n<h4 style=\"text-align: justify;\">SOFTWARE TOOLS REQUIRED<\/h4>\n<p style=\"text-align: justify;\">1. WinAVR Studio<\/p>\n<p style=\"text-align: justify;\">2. AVR Dude<\/p>\n<p style=\"text-align: justify;\">3. LUFA Firmware<\/p>\n<p style=\"text-align: justify;\"><strong style=\"font-size: 12.8px; text-align: center;\">BLOCK DIAGRAM<\/strong><\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" title=\"Block Diagram of Arduino Based USB Digital Password Generator \" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/07\/Block-Diagram-Arduino-Based-USB-Digital-Password-Generator.png\" alt=\"Block Diagram of Arduino Based USB Digital Password Generator \" \/><\/p>\n<p style=\"text-align: center;\"><em>Fig. 3: Block Diagram of Arduino Based USB Digital Password Generator\u00a0<\/em><\/p>\n<h4 style=\"text-align: justify;\">CIRCUIT CONNECTIONS<\/h4>\n<p style=\"text-align: justify;\">The project uses Arduino Pro Micro as the USB controller chip. There is a single tactile switch connected at the pin 5 of port B of the Arduino. The switch is provided to get the call to action that password has to be printed..<\/p>\n<p style=\"text-align: justify;\">The tactile switch is connected between the port and ground. The pin 5 of port B by default is connected to VCC and receive a HIGH logic. Pressing the tactile switch changes the status at the respective pin to LOW by short circuiting to the ground.<\/p>\n<p style=\"text-align: justify;\">The Program code for the project is burnt to the Arduino Pro Micro using AVR Dude. The Arduino board is connected to the USB port of a PC by a USB cable.<\/p>\n<p>&nbsp;<\/p>\n<h2 style=\"text-align: justify;\"><u>HOW THE PROJECT WORKS<\/u><\/h2>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12.8px;\">For configuring the controller chip to work as an automated keyboard, the HID Class Driver for keyboard of the LUFA framework is used. The Human Interface Device (HID) class takes care of the transfers between the host device and the human controlled USB peripherals like USB Keyboard, Mouse or Joystick. The implementation of the USB protocol is carried out by the open-source drivers of the LUFA framework.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12.8px;\">Like any HID device, when the digital password generator is attached to the host computer (PC), the host sends request for configuration details in the form of control transfer. The controller chip on the device has to respond with appropriate descriptors to get configured and ready for further operations. Only after configuration, the device can transfer password on user input with the host in the form of interrupt transfers. The process of identification and configuration of any USB device with the host is called enumeration.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12.8px;\">Any device using HID class for keyboards identifies the key pressed by the keycode or combination of keycodes sent from the controller chip of the device to the host in the data input report. The device is basically an automated keyboard. Any keyboard device sends a usage report and data input report to the host and receives data output report from the host at the application layer to work like a keyboard. The reports are a medium at application layer as per the USB protocol to facilitate enumeration and communication between the host and the device. To learn about HID Class for Keyboard and how the usage report, data input report and data output report are structured in the HID Class for Keyboard, go through the <a href=\"https:\/\/www.engineersgarage.com\/contributions\/atmega-32u4-based-generic-usb-keyboard\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Atmega 32u4 based Generic USB Keyboard project<\/strong><\/a>.<\/span><span style=\"font-size: 12.8px;\">To learn about the keycodes assigned to different ASCII characters and modifier keys on a generic keyboard, check out the HID Usage Table provided by the <strong>USB Implementers Forum<\/strong>.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12.8px;\">The series of keycodes representing the password have to be passed to the host on pressing a single key. This is managed by the program code of USB controller chip. The password can consist of uppercase, lowercase letters, number or special characters (* # , \/ . A &#8211; @). The lowercase alphabets can be sent directly by sending the equivalent keycode in the Data input report but for Uppercase and Special symbols, the keycode for Shift key along with other keycode needs to be sent in the Data input report. After transmitting a keycode, an empty data report is sent to indicate that the key has been released. The empty data report is generally a NULL report. This means, after sending a keycode for a character every time a NULL report will have to be sent. This process continues until all keycodes for the required characters are transmitted. In a password box, the characters do not display but appear as a string of asterisk.<\/span><\/p>\n<p style=\"text-align: justify;\"><em><span style=\"font-size: 12.8px;\"><img decoding=\"async\" title=\"Image showing Arduino based USB Digital Password Generator being used to login Facebook\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/07\/Image-Showing-Arduino-Based-USB-Digital-Password-Generator-Login-Facebook.jpg\" alt=\"Image showing Arduino based USB Digital Password Generator being used to login Facebook\" \/><\/span><\/em><\/p>\n<p style=\"text-align: center;\"><em>Fig. 4:\u00a0Image showing Arduino based USB Digital Password Generator being used to login Facebook<\/em><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12.8px;\">This device is an automated keyboard. A keyboard is HID class USB device and LUFA framework has HID class related modules in the LUFA-Source-Folder \/LUFA\/Drivers\/USB\/Class\/Device folder. Other device class related module are also in the same folder. The LUFA framework has demo projects for different USB device classes in the LUFA-Source-FolderDemosDeviceClassDriver folder. For implementing the project, demo project for keyboard provided in the LUFA framework is modified and complied. The demo project for keyboard is in the LUFA-Source-FolderDemosDeviceClassDriverKeyboard folder. The folder contains keyboard.c file which will be modified to work like an automated keyboard.<\/span><\/p>\n<h4 style=\"text-align: justify;\"><u><span style=\"font-size: 12.8px;\">How Keyboard.c identifies HID device being Keyboard<\/span><\/u><\/h4>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12.8px;\">The keyboard.c uses Keyboard_HID_Interface interface in HID_Device_USBTask() function which is being imported from the HIDDeviceClass.c (from LUFA-Source-Folder LUFADriversUSBClassDevice) to configure the device as keyboard. The interface abstracts the low-level descriptor codes and identifies the device as keyboard through an InterfaceNumber variable.<\/span><\/p>\n<h4 style=\"text-align: justify;\"><u>From Where Keyboard.C gets the USAGE and Data Reports Descriptors<\/u><\/h4>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12.8px;\">In the LUFA framework&#8217;s demo project for Keyboard, descriptor.c file is imported in keyboard.c to send the relevant usage and data reports descriptors to the host device. The descriptor.c defines a KeyboardReport[] structure which is used in the CALLBACK_HID_Device_CreateHIDReport() function of the keyboard.c to generate keyboard specific usage and data reports descriptors. Inside descriptor.c the KeyboardReport[] structure has the values returned by HID_DESCRIPTOR_KEYBOARD () function. The HID_DESCRIPTOR_KEYBOARD() is defined in HIDClassCommon.h (located in LUFA-Source-FolderLUFADriversUSBClassCommon folder). The keyboard.c imports keyboard.h which imports usb.h. USB.h imports HIDCLass.h. In HIDClass.h is imported HIDClassDevice.h if the USB_CAN_BE_DEVICE is true for the controller chip to being an USB device not the host. The HIDClassDevice.h imports HIDClassCommon.h where the HID device specific descriptor fields have been defined.<\/span><\/p>\n<h4 style=\"text-align: justify;\"><u><span style=\"font-size: 12.8px;\">HOW THE DEVICE WORKS<\/span><\/u><\/h4>\n<p style=\"text-align: justify;\">The AVR microcontroller is programmed to get the user input from the tactile switch that prompts the controller chip to transfer the password to the host. The main() function and CALLBACK_HID_Device_CreateHIDReport() function of the keyboard.c are modified to customize the program code to send the required keycodes or combination of keycodes in the data input reports. A series of data input reports along with null report after each data input report will be sent from the device. Check out the program code to see the modifications implemented for building the project.<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" title=\"Image showing Arduino based USB Digital Password Generator being used to login Facebook\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/07\/Image-Showing-Arduino-Based-USB-Digital-Password-Generator-Login-Facebook.jpg\" alt=\"Image showing Arduino based USB Digital Password Generator being used to login Facebook\" \/><\/p>\n<p style=\"text-align: center;\"><em>Fig. 5: Image showing Arduino based USB Digital Password Generator being used to login Facebook<\/em><\/p>\n<h4 style=\"text-align: justify;\"><u>PROGRAMMING GUIDE<\/u><\/h4>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12.8px;\">For building the project download the <a href=\"https:\/\/github.com\/abcminiuser\/lufa\" target=\"_blank\" rel=\"noopener noreferrer\">LUFA framework<\/a> from the github.com.\u00a0<\/span><span style=\"font-size: 12.8px;\">The demo project provided with the LUFA framework is modified to make the password generator. In the extracted LUFA zip file, open Demos\/Device\/ClassDriver\/Keyboard folder. The folder has the following files and folders.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12.8px;\"><img decoding=\"async\" title=\"Screenshot of LUFA Library Folder on Windows\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/07\/Screenshot-LUFA-Library-Folder-Windows.png\" alt=\"Screenshot of LUFA Library Folder on Windows\" \/><\/span><\/p>\n<p style=\"text-align: center;\"><em>Fig. 6:\u00a0Screenshot of LUFA Library Folder on Windows<\/em><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12.8px;\">Of these, Keyboard.h, Keyboard.c and Makefile needs to be modified for this project.\u00a0<\/span><span style=\"font-family: arial, sans-serif; font-size: 12.8px;\">The modified files (provided at the bottom of the article in zip format) can also be downloaded from the engineersgarage and replaced with the original files.<\/span><span style=\"font-size: 12.8px;\">\u00a0Either open the files in WinAVR Studio or Notepad++ and modify original files or replace files with the already modified one. The modified or replaced Keyboard.c needs to be compiled from within the LUFA&#8217;s Source folder to get the object code.<\/span><\/p>\n<h4 style=\"text-align: justify;\"><u><span style=\"font-size: 12.8px;\">Modifying Keyboard.h<\/span><\/u><\/h4>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12.8px;\">The Keyboard.h library file is imported in the Keyboard.c file and includes a set of additional libraries and defines the constants and functions for the keyboard device. These include the additional libraries for the joystick, button and LEDs which should be commented out as the project is not using these HID features. So open Keyboard.h and make the following changes &#8211; :<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12.8px;\">\u2022<\/span> <span style=\"font-size: 12.8px;\">Comment the #include library statements for Joystick.h, LEDS.h, and Buttons.h (The include statements for these libraries are commented as any joystick, buttons board and LED board is not used in the project)<\/span><\/p>\n<div style=\"text-align: justify;\">\u2022 Comment the #define statements for LEDMASK_USB_NOTREADY, LEDMASK_USB_ENUMERATING, LEDMASK_USB_READY, LEDMASK_USB_ERROR<\/div>\n<p style=\"text-align: justify;\">Save the file with changes<\/p>\n<h4 style=\"text-align: justify;\"><u>Modifying Keyboard.C file<\/u><\/h4>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12.8px;\">Again in the Keyboard.c, the code sections for Joystick, button board and LEDs need to be commented out. \u00a0So open Keyboard.c and make the following changes &#8211; :<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12.8px;\">\u2022<\/span> <span style=\"font-size: 12.8px;\">In the main loop, comment the LEDs_SetAllLEDs()<\/span><\/p>\n<p style=\"text-align: justify;\">\u2022 In SetupHardware() function, comment the Joystick_Init(), LEDs_Init(), Buttons_Init()<\/p>\n<p style=\"text-align: justify;\">\u2022 In EVENT_USB_Device_Connect() function, comment the LEDs_SetAllLEDs()<\/p>\n<p style=\"text-align: justify;\">\u2022 In EVENT_USB_Device_Disconnect() function, comment LEDs_SetAllLEDs()<\/p>\n<p style=\"text-align: justify;\">\u2022 In EVENT_USB_Device_ConfigurationChanged() function, comment the LEDs_SetAllLEDs()<\/p>\n<p style=\"text-align: justify;\">In Keyboard.c the main() function executes the functioning of the password generator. Inside the main function, Port B where the tactile switch has been connected needs to be defined as input and the pin 5 of port B has to be raised to HIGH logic by default as the microcontroller will need to detect LOW logic for input from the tactile switch. Therefore, modify the body of main() function as the code given below.<\/p>\n<div><\/div>\n<div>\u00a0 \u00a0 \u00a0 int main(void)<\/div>\n<div>{<\/div>\n<div>\u00a0 \u00a0 \u00a0 SetupHardware();<\/div>\n<div>\u00a0 \u00a0 \u00a0 DDRB = 0x00;<\/div>\n<div>\u00a0 \u00a0 \u00a0 PORTB = 0xff;<\/div>\n<div><\/div>\n<div>\u00a0 \u00a0 \u00a0 \/\/LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY);<\/div>\n<div>\u00a0 \u00a0 \u00a0 GlobalInterruptEnable();<\/div>\n<div><\/div>\n<div>\u00a0 \u00a0 \u00a0 for (;;)<\/div>\n<div>\u00a0 \u00a0 \u00a0 {<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 HID_Device_USBTask(&amp;Keyboard_HID_Interface);<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 USB_USBTask();<\/div>\n<div>\u00a0 \u00a0 \u00a0 }<\/div>\n<div>}<\/div>\n<div style=\"text-align: justify;\">The statements should be added before the infinite loop otherwise the microcontroller port will not be configured for the general purpose input.<\/div>\n<p style=\"text-align: justify;\">Inside the infinite for loop the HID_Device_USBTask() function is called where Keyboard_HID_Interface interface is passed as parameter. The interface identifies the device as keyboard and abstracts the low level program code specific to keyboard HID class. The function is coming from the HIDClassDevice.c module (located in LUFA\/Drivers\/USB\/Class\/Device\/HIDClassDevice.c) and is used for general management task for a given HID class interface, required for the correct operation of the interface. It should be called in the main program loop, before the master USB management task USB_USBTask(). The \u00a0USB_USBTask() is the main USB management task. The USB driver requires this task to be executed continuously when the USB system is active (device attached in host mode, or attached to a host in device mode) in order to manage USB communications. The function is defined in USBTask.c (Located in LUFA-Source-FolderLUFADriversUSBCore folder).<\/p>\n<div>\n<div style=\"text-align: justify;\">For easy implementation of the project, defining an ASCII to keycode conversion function will be required, so that it can be safely used with ASCII characters passed as function parameter. This will help avoiding the complication of looking back the keycode in HID Usage Table for the characters of the password every time. The ASCII to keycode function must be defined before main() function in the following manner.<\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div>\u00a0 \u00a0 \u00a0uint8_t ASCII_to_keycode(char value)<\/div>\n<div>\u00a0 \u00a0 \u00a0{<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0if(value &gt;= &#8216;a&#8217; &amp;&amp; value &lt;= &#8216;z&#8217;)<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0{<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0return (4 + value &#8211; &#8216;a&#8217;); \/\/ 4 is the keycode for \u2018a\u2019<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0}<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0else if(value &gt;= &#8216;A&#8217; &amp;&amp; value &lt;= &#8216;Z&#8217;)<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0{<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0return (4 + value &#8211; &#8216;A&#8217;); \/\/ 4 is the keycode for \u2018a\u2019<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0}<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0else if(value &gt;= &#8216;1&#8217; &amp;&amp; value &lt;= &#8216;9&#8217;)<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0{<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 return (30 + value &#8211; &#8216;1&#8217;); \/\/ 30 is the key code for \u20181\u2019<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0}<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0else if(value == &#8216;0&#8217;)<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 return 39; \/\/ 39 is keycode for 0<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0else if(value == &#8216;*&#8217;)<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 return 37; \/\/ 37 is keycode for *<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0else if(value == &#8216;#&#8217;)<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 return 32; \/\/ 32 is keycode for #<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0else if(value == &#8216;\/&#8217;) \/\/ to be taken as a enter<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 return 40; \/\/ 40 is keycode for enter key<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0else if(value == &#8216;.&#8217;)<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 return 55; \/\/ 55 is keycode for enter key<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0else if(value == &#8216;-&#8216;)<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0return 45; \/\/ 45 is keycode for enter key<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0else if(value == &#8216;,&#8217;)<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 return 54; \/\/ 54 is keycode for enter key<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0else if(value == &#8216; &#8216;)<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 return 44; \/\/ 44 is keycode for space key<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0else if(value == &#8216;@&#8217;)<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 return 31; \/\/ 32 is keycode for space key<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0\/\/ more conditions can be made for other ASCII codes<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0return 0;<\/div>\n<div>}<\/div>\n<p style=\"text-align: justify;\">For sending a series of Data Input reports including null report \u00a0CALLBACK_HID_Device_CreateHIDReport() needs to be modified. The default file has the function body to detect joystick movement as well.<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" title=\"Screenshot of CALLBACK_HID_Device_CreateHIDReport Function in LUFA Library\" src=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/07\/Screenshot-CALLBACK-HID-Device-CreateHIDReport-Function-LUFA-Library.png\" alt=\"Screenshot of CALLBACK_HID_Device_CreateHIDReport Function in LUFA Library\" \/><\/p>\n<p style=\"text-align: center;\"><em>Fig. 7: Screenshot of CALLBACK_HID_Device_CreateHIDReport Function in LUFA Library<\/em><\/p>\n<p style=\"text-align: justify;\">Remove the statements from body of CALLBACK_HID_Device_CreateHIDReport() function. Two Boolean variables to keep check the status of key being released or not and the another character ready to be sent or not are defined. The password is stored in an array &#8211; password[] and a counter variable is defined to run a loop. A loop is run by an if-else statement where the elements of password[] array are read to the length of the array and counter variable is increased. The character that has to be sent in an individual data input report is sent by ASCII to keycode conversion function with or without combination of shift modifier key. So replace the body of the CALLBACK_HID_Device_CreateHIDReport() function with the following code.<\/p>\n<div>bool<\/div>\n<div>CALLBACK_HID_Device_CreateHIDReport(USB_ClassInfo_HID_Device_t* const HIDInterfaceInfo,<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0uint8_t* const ReportID,<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0const uint8_t ReportType,<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0void* ReportData,<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0uint16_t* const ReportSize)<\/div>\n<div>{<\/div>\n<div>\u00a0 \u00a0 USB_KeyboardReport_Data_t* KeyboardReport = (USB_KeyboardReport_Data_t*)ReportData;<\/div>\n<div><\/div>\n<div>\u00a0 \u00a0 static bool key_status; \/\/ 0 means its time to send character, 1 means its time to break or send NULL<\/div>\n<div>\u00a0 \u00a0 static bool ready_to_send; \/\/ check to indicate that button is pressed or not<\/div>\n<div>\u00a0 \u00a0 char password[] = &#8220;*hI#&#8221;; \/\/ password declaration<\/div>\n<div>\u00a0 \u00a0 static int index_counter; \/\/ array index counter for keeping track of converting character<\/div>\n<div><\/div>\n<div>\u00a0 \u00a0 \u00a0if(!(PINB &amp; _BV(5)))<\/div>\n<div>\u00a0 \u00a0 \u00a0ready_to_send = 1;\/\/ button is pressed and ready to send<\/div>\n<div><\/div>\n<div>\u00a0 \u00a0 \u00a0if(ready_to_send)<\/div>\n<div>\u00a0 \u00a0 \u00a0{<\/div>\n<div>\u00a0 \u00a0 \u00a0if(key_status == 0) \/\/ send character<\/div>\n<div>\u00a0 \u00a0 \u00a0{<\/div>\n<div>\u00a0 \u00a0 \u00a0if(index_counter &lt; strlen(password)) \/\/ send characters one by one until all are send<\/div>\n<div>\u00a0 \u00a0 \u00a0{<\/div>\n<div>\u00a0 \u00a0 \u00a0\/\/ convert ASCII character to keyboard keycode<\/div>\n<div>\u00a0 \u00a0 \u00a0KeyboardReport-&gt;KeyCode[0] = ASCII_to_keycode(password[index_counter]);<\/div>\n<div><\/div>\n<div>\u00a0 \u00a0 \u00a0\/\/if character was Uppercase Alphabet or special sign, send Shift key<\/div>\n<div>\u00a0 \u00a0 \u00a0if(password[index_counter] &gt;= &#8216;A&#8217; &amp;&amp; password[index_counter] &lt;= &#8216;Z&#8217; ||<\/div>\n<div>\u00a0 \u00a0 \u00a0password[index_counter] == &#8216;*&#8217; || password[index_counter] == &#8216;#&#8217;)<\/div>\n<div>\u00a0 \u00a0 \u00a0KeyboardReport-&gt;Modifier = HID_KEYBOARD_MODIFIER_LEFTSHIFT;<\/div>\n<div><\/div>\n<div>\u00a0 \u00a0 \u00a0index_counter = index_counter + 1;\/\/ increment counter for next character<\/div>\n<div><\/div>\n<div>\u00a0 \u00a0 \u00a0}<\/div>\n<div>\u00a0 \u00a0 \u00a0key_status = 1; \/\/ to break or send NULL key next time<\/div>\n<div>\u00a0 \u00a0 \u00a0}<\/div>\n<div>\u00a0 \u00a0 \u00a0else key_status = 0;<\/div>\n<div>}<\/div>\n<p style=\"text-align: justify;\">In the body _BV() function is used to map the respective bit as a byte with only the respective bit changed in the returned byte.<\/p>\n<p style=\"text-align: justify;\">The Data Output Report is not utilized in the project execution therefore the CALLBACK_HID_Device_ProcessHIDReport() function which process Data Output report has been kept unchanged.<\/p>\n<p style=\"text-align: justify;\">Save the file and create Make file for the project.<\/p>\n<h4 style=\"text-align: justify;\"><u>Modifying Make File<\/u><\/h4>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12.8px;\">In the Keyboard folder there is a make file that needs to be edited. The file can be edited using Notepad++. The following information needs to be edited &#8211; :<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12.8px;\">\u2022<\/span> <span style=\"font-size: 12.8px;\">MCU = atmega32u4<\/span><\/p>\n<div style=\"text-align: justify;\">\u2022 ARCH = AVR8<\/div>\n<div style=\"text-align: justify;\">\u2022 BOARD = LEONARDO<\/div>\n<div style=\"text-align: justify;\">\u2022 F_CPU = 16000000<\/div>\n<p style=\"text-align: justify;\">Save the file and exit. Now all the files are edited completely for the Password Generator Project.<\/p>\n<h4 style=\"text-align: justify;\"><u>Compiling Keyboard.c<\/u><\/h4>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12.8px;\">For compiling the source code, WinAVR Programmers Notepad or Arduino IDE can be used. Open the modified Keyboard.c file and compile the code.<\/span><\/p>\n<h4 style=\"text-align: justify;\">BURNING HEX CODE<\/h4>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12.8px;\">The hex file is generated on compiling the keyboard.c file. For burning the object code to microcontroller open the Command Prompt, change the current directory to the directory containing the Hex file. This can be done using command: CD &lt;address of the directory&gt;. Now reset the Arduino and instantly run the command: : avrdude -v -p atmega32u4 -c avr109 -P COM20 -b 57600 -D -Uflash:w:Keyboard.hex:i after replacing the COM Port with the recognized one.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12.8px;\">If the uploading process is successful, the Arduino board will be shown as HID Keyboard in the Device Manager. There is no need of installing any driver in the computer as Generic HID Keyboard is used for the project implementation. Boot the operating system or the login window of any software or website and point the cursor to the password box. Now plug in the password generator and press button to print out the password. Click on the submit button to login the operating system, software or website. The password stored in the device can be changed by changing the content of password[] array in the program code..<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 12.8px;\">In the next project &#8211; <a href=\"https:\/\/www.engineersgarage.com\/contribution\/atmega-32u4-based-usb-number-pad\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Atmega 32u4 based USB Number Pad<\/strong><\/a>, learn how to make a numeric keypad that can connect to any computer or computing device through USB.<\/span><\/p>\n<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Like computers have become part and parcel of daily lives, the passwords have too. From operating systems to website logins, the most common and secured way to get access is the password protection. The passwords just serve like the keys. Like the keys open physical locks, the passwords open the digital locks for access to operating systems and other software or website. &nbsp;Generally users need to type the password in a textbox and press some button to get access to OS, software or website. While typing the password, it can be seen by an onlooker or tracked by key logging. This project is a USB device that will store the user passwords and print it out to a login window just by pressing a single button.<\/p>\n","protected":false},"author":311,"featured_media":53892,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[13],"tags":[],"class_list":{"2":"type-post","8":"entry","9":"has-post-thumbnail"},"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.2 (Yoast SEO v25.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Atmega 32u4 Based Password Generator (Part 6\/25)<\/title>\n<meta name=\"description\" content=\"The project is an USB Plug and Play device like and automated keyboard thus saves the password being stolen.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.engineersgarage.com\/atmega-32u4-based-password-generator-part-6-25\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Atmega 32u4 Based Password Generator (Part 6\/25)\" \/>\n<meta property=\"og:description\" content=\"The project is an USB Plug and Play device like and automated keyboard thus saves the password being stolen.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.engineersgarage.com\/atmega-32u4-based-password-generator-part-6-25\/\" \/>\n<meta property=\"og:site_name\" content=\"Engineers Garage\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/engineersgarage\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/07\/Prototype-Arduino-Based-USB-Digital-Password-Generator.png\" \/>\n\t<meta property=\"og:image:width\" content=\"600\" \/>\n\t<meta property=\"og:image:height\" content=\"336\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Amanpreet Singh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@EngineersGarage\" \/>\n<meta name=\"twitter:site\" content=\"@EngineersGarage\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Amanpreet Singh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"15 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.engineersgarage.com\/atmega-32u4-based-password-generator-part-6-25\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.engineersgarage.com\/atmega-32u4-based-password-generator-part-6-25\/\"},\"author\":{\"name\":\"Amanpreet Singh\",\"@id\":\"https:\/\/www.engineersgarage.com\/#\/schema\/person\/526929dd58916ffb049da3e9adae8ead\"},\"headline\":\"Atmega 32u4 Based Password Generator (Part 6\/25)\",\"datePublished\":\"2024-11-21T06:44:09+00:00\",\"dateModified\":\"2024-11-21T10:46:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.engineersgarage.com\/atmega-32u4-based-password-generator-part-6-25\/\"},\"wordCount\":3153,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.engineersgarage.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.engineersgarage.com\/atmega-32u4-based-password-generator-part-6-25\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/07\/Prototype-Arduino-Based-USB-Digital-Password-Generator.png\",\"articleSection\":[\"Electronic Projects\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.engineersgarage.com\/atmega-32u4-based-password-generator-part-6-25\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.engineersgarage.com\/atmega-32u4-based-password-generator-part-6-25\/\",\"url\":\"https:\/\/www.engineersgarage.com\/atmega-32u4-based-password-generator-part-6-25\/\",\"name\":\"Atmega 32u4 Based Password Generator (Part 6\/25)\",\"isPartOf\":{\"@id\":\"https:\/\/www.engineersgarage.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.engineersgarage.com\/atmega-32u4-based-password-generator-part-6-25\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.engineersgarage.com\/atmega-32u4-based-password-generator-part-6-25\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/07\/Prototype-Arduino-Based-USB-Digital-Password-Generator.png\",\"datePublished\":\"2024-11-21T06:44:09+00:00\",\"dateModified\":\"2024-11-21T10:46:04+00:00\",\"description\":\"The project is an USB Plug and Play device like and automated keyboard thus saves the password being stolen.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.engineersgarage.com\/atmega-32u4-based-password-generator-part-6-25\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.engineersgarage.com\/atmega-32u4-based-password-generator-part-6-25\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.engineersgarage.com\/atmega-32u4-based-password-generator-part-6-25\/#primaryimage\",\"url\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/07\/Prototype-Arduino-Based-USB-Digital-Password-Generator.png\",\"contentUrl\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/07\/Prototype-Arduino-Based-USB-Digital-Password-Generator.png\",\"width\":600,\"height\":336,\"caption\":\"\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.engineersgarage.com\/atmega-32u4-based-password-generator-part-6-25\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.engineersgarage.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Atmega 32u4 Based Password Generator (Part 6\/25)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.engineersgarage.com\/#website\",\"url\":\"https:\/\/www.engineersgarage.com\/\",\"name\":\"Engineers Garage\",\"description\":\"Electronic Projects, Electrical Engineering Resources, Makers Articles and Product News\",\"publisher\":{\"@id\":\"https:\/\/www.engineersgarage.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.engineersgarage.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.engineersgarage.com\/#organization\",\"name\":\"Engineer's Garage - WTWH Media\",\"url\":\"https:\/\/www.engineersgarage.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.engineersgarage.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/08\/EGlogo.png\",\"contentUrl\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/08\/EGlogo.png\",\"width\":372,\"height\":52,\"caption\":\"Engineer's Garage - WTWH Media\"},\"image\":{\"@id\":\"https:\/\/www.engineersgarage.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/engineersgarage\",\"https:\/\/x.com\/EngineersGarage\",\"https:\/\/www.youtube.com\/channel\/UC0VITh11JSYk-UW7toLebUw\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.engineersgarage.com\/#\/schema\/person\/526929dd58916ffb049da3e9adae8ead\",\"name\":\"Amanpreet Singh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.engineersgarage.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ae10b6a902c38b371923411a43a9bfe57a88c4fdcc00744c0ece299e5401ae17?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ae10b6a902c38b371923411a43a9bfe57a88c4fdcc00744c0ece299e5401ae17?s=96&r=g\",\"caption\":\"Amanpreet Singh\"},\"url\":\"https:\/\/www.engineersgarage.com\/author\/asingh\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Atmega 32u4 Based Password Generator (Part 6\/25)","description":"The project is an USB Plug and Play device like and automated keyboard thus saves the password being stolen.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.engineersgarage.com\/atmega-32u4-based-password-generator-part-6-25\/","og_locale":"en_US","og_type":"article","og_title":"Atmega 32u4 Based Password Generator (Part 6\/25)","og_description":"The project is an USB Plug and Play device like and automated keyboard thus saves the password being stolen.","og_url":"https:\/\/www.engineersgarage.com\/atmega-32u4-based-password-generator-part-6-25\/","og_site_name":"Engineers Garage","article_publisher":"https:\/\/www.facebook.com\/engineersgarage","og_image":[{"width":600,"height":336,"url":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/07\/Prototype-Arduino-Based-USB-Digital-Password-Generator.png","type":"image\/png"}],"author":"Amanpreet Singh","twitter_card":"summary_large_image","twitter_creator":"@EngineersGarage","twitter_site":"@EngineersGarage","twitter_misc":{"Written by":"Amanpreet Singh","Est. reading time":"15 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.engineersgarage.com\/atmega-32u4-based-password-generator-part-6-25\/#article","isPartOf":{"@id":"https:\/\/www.engineersgarage.com\/atmega-32u4-based-password-generator-part-6-25\/"},"author":{"name":"Amanpreet Singh","@id":"https:\/\/www.engineersgarage.com\/#\/schema\/person\/526929dd58916ffb049da3e9adae8ead"},"headline":"Atmega 32u4 Based Password Generator (Part 6\/25)","datePublished":"2024-11-21T06:44:09+00:00","dateModified":"2024-11-21T10:46:04+00:00","mainEntityOfPage":{"@id":"https:\/\/www.engineersgarage.com\/atmega-32u4-based-password-generator-part-6-25\/"},"wordCount":3153,"commentCount":0,"publisher":{"@id":"https:\/\/www.engineersgarage.com\/#organization"},"image":{"@id":"https:\/\/www.engineersgarage.com\/atmega-32u4-based-password-generator-part-6-25\/#primaryimage"},"thumbnailUrl":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/07\/Prototype-Arduino-Based-USB-Digital-Password-Generator.png","articleSection":["Electronic Projects"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.engineersgarage.com\/atmega-32u4-based-password-generator-part-6-25\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.engineersgarage.com\/atmega-32u4-based-password-generator-part-6-25\/","url":"https:\/\/www.engineersgarage.com\/atmega-32u4-based-password-generator-part-6-25\/","name":"Atmega 32u4 Based Password Generator (Part 6\/25)","isPartOf":{"@id":"https:\/\/www.engineersgarage.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.engineersgarage.com\/atmega-32u4-based-password-generator-part-6-25\/#primaryimage"},"image":{"@id":"https:\/\/www.engineersgarage.com\/atmega-32u4-based-password-generator-part-6-25\/#primaryimage"},"thumbnailUrl":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/07\/Prototype-Arduino-Based-USB-Digital-Password-Generator.png","datePublished":"2024-11-21T06:44:09+00:00","dateModified":"2024-11-21T10:46:04+00:00","description":"The project is an USB Plug and Play device like and automated keyboard thus saves the password being stolen.","breadcrumb":{"@id":"https:\/\/www.engineersgarage.com\/atmega-32u4-based-password-generator-part-6-25\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.engineersgarage.com\/atmega-32u4-based-password-generator-part-6-25\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.engineersgarage.com\/atmega-32u4-based-password-generator-part-6-25\/#primaryimage","url":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/07\/Prototype-Arduino-Based-USB-Digital-Password-Generator.png","contentUrl":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/07\/Prototype-Arduino-Based-USB-Digital-Password-Generator.png","width":600,"height":336,"caption":""},{"@type":"BreadcrumbList","@id":"https:\/\/www.engineersgarage.com\/atmega-32u4-based-password-generator-part-6-25\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.engineersgarage.com\/"},{"@type":"ListItem","position":2,"name":"Atmega 32u4 Based Password Generator (Part 6\/25)"}]},{"@type":"WebSite","@id":"https:\/\/www.engineersgarage.com\/#website","url":"https:\/\/www.engineersgarage.com\/","name":"Engineers Garage","description":"Electronic Projects, Electrical Engineering Resources, Makers Articles and Product News","publisher":{"@id":"https:\/\/www.engineersgarage.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.engineersgarage.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.engineersgarage.com\/#organization","name":"Engineer's Garage - WTWH Media","url":"https:\/\/www.engineersgarage.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.engineersgarage.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/08\/EGlogo.png","contentUrl":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/08\/EGlogo.png","width":372,"height":52,"caption":"Engineer's Garage - WTWH Media"},"image":{"@id":"https:\/\/www.engineersgarage.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/engineersgarage","https:\/\/x.com\/EngineersGarage","https:\/\/www.youtube.com\/channel\/UC0VITh11JSYk-UW7toLebUw"]},{"@type":"Person","@id":"https:\/\/www.engineersgarage.com\/#\/schema\/person\/526929dd58916ffb049da3e9adae8ead","name":"Amanpreet Singh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.engineersgarage.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ae10b6a902c38b371923411a43a9bfe57a88c4fdcc00744c0ece299e5401ae17?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ae10b6a902c38b371923411a43a9bfe57a88c4fdcc00744c0ece299e5401ae17?s=96&r=g","caption":"Amanpreet Singh"},"url":"https:\/\/www.engineersgarage.com\/author\/asingh\/"}]}},"featured_image_src":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/07\/Prototype-Arduino-Based-USB-Digital-Password-Generator.png","featured_image_src_square":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/07\/Prototype-Arduino-Based-USB-Digital-Password-Generator.png","author_info":{"display_name":"Amanpreet Singh","author_link":"https:\/\/www.engineersgarage.com\/author\/asingh\/"},"_links":{"self":[{"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/posts\/13413","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/users\/311"}],"replies":[{"embeddable":true,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/comments?post=13413"}],"version-history":[{"count":0,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/posts\/13413\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/media\/53892"}],"wp:attachment":[{"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/media?parent=13413"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/categories?post=13413"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/tags?post=13413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}