Project tutorial
Password Saver

Password Saver

This tiny project is made to log in faster and easier. And btw this is not my actual password.

  • 4 views
  • 0 comments
  • 0 respects

Components and supplies

Apps and online services

About this project

The Wiring

The Use

You just have to chose the right account, press on the button, copy the password with Ctrl+C, and paste it into the log in screen with Ctrl+V.

Now you can use complicated passwords and don't have to type in the password every time.

A version with the Keyboard.h libary follows soon. I'll post a comment with the link under this project, if it's uploaded.

Code

Password_Writer.inoC/C++
In this code, you only have to replace the line 28 and 32 with your accounts and then lines 46 and 50 with the according passwords.
int menu;
int PrevMenuState;

int button = 11;    // the pin, which the button is attached on
/* For the analog input, I couldn't use a variable, because of the A for analog,
so you have to correct some lines
the lines are:14,20 */

int passwords = 2;  // numbers of passwords/accounts

void setup() {
  Serial.begin(9600);
  pinMode(button,INPUT_PULLUP);
  pinMode(A5,INPUT);
  PrevMenuState = 2;
}

void loop() {
  
  menu = map(analogRead(A5),0,1024,0,passwords);   // converts the 1024 steps into tinier steps

  if(menu != PrevMenuState){



    
    if(menu == 0){
      Serial.println("Your account which the password is for1");    
      
    }
    if(menu == 1){
      Serial.println("Your account which the password is for2");    
    }
/*    if(menu == 2){    // for 3 accounts just undo the block comment and add 1 to the passwords int
      Serial.println("Your account which the password is for3");    
    }*/
     PrevMenuState = menu;
     
  }




  if(digitalRead(button) == LOW){
    if(menu == 0){
      Serial.println("password1 "); 
      while(digitalRead(button) == LOW){}
    }
    if(menu == 1){
      Serial.println("password2 ");    
      while(digitalRead(button) == LOW){}
    }
/*    if(menu == 2){
      Serial.println("password3 ");    /    // for 3 accounts just undo the block comment and add 1 to the passwords int
      while(digitalRead(button) == LOW){}
        
    }*/
    
  }
  
}

Comments

Similar projects you might like

Arduino and Android Based Password Protected Door Lock

Project tutorial by Md. Khairul Alam

  • 11,418 views
  • 6 comments
  • 46 respects

Password Based Door Lock

Project tutorial by Rishabh

  • 13,974 views
  • 6 comments
  • 28 respects

Smart Energy Saver for Your Home

Project tutorial by Dhairya Parikh

  • 7,426 views
  • 14 comments
  • 24 respects

The Magnetic Field and RGB Tester

Project tutorial by Kutluhan Aktar

  • 3,593 views
  • 0 comments
  • 14 respects

Arduino RGB Color Mixer

Project tutorial by FIELDING

  • 3,437 views
  • 1 comment
  • 11 respects

Poseidon: The Water Saver

Project showcase by Jasmeet Singh

  • 2,916 views
  • 10 comments
  • 13 respects
Add projectSign up / Login