Skip to main content

Java login app


LOGIN

Since the 60s there have been security authentication protocols, and today we have here a login using 2 Factors.
  • Basic login Factor: credentials(email, user id, password)
  • Advanced login Factor: Verify Humanity(answer a multiple choice question to verify humanity)
  1. import static java.lang.System.out;
  2. import java.util.Scanner;

  3. public class Wizardslogmin {

  4. public static void main(String[] args) {

  5.     // THE STRING CREATES A SET OF VARIABLES WE WILL USE IN THE PROJECT
  6.     
  7.     String UserID;
  8.     String UserPassword;
  9.     String uEMAIL;
  10.     String HUMAN;
  11.     
  12. // THIS IS DEFINING THE VALUES OF THE STRINGS
  13.     
  14.     UserPassword = "ALCHEMIST1@1";
  15.     UserID = "STAFFHOLDER";
  16.     uEMAIL = "WIRED2TECH@AOL.COM";
  17.     HUMAN = "YES";

  18.     // THE SCANNER FORWARDS THE TEXT ONTO THE SCREEN AND WAITS FOR THE USERS RESPONSE
  19.     
  20.     Scanner input1 = new Scanner(System.in);
  21.     System.out.println("please Enter UserID : ");
  22.     String userID = input1.next();

  23.     Scanner input2 = new Scanner(System.in);
  24.     System.out.println(" please Enter UserPassword : ");
  25.     String Userpassword = input2.next();
  26.     
  27.     Scanner input3 = new Scanner (System.in);
  28.     System.out.println("please enter your EMAIL : ");
  29.     input3.next(uEMAIL);
  30.     
  31.     Scanner input4 = new Scanner (System.in);
  32.     System.out.println("Confirm Humanity (YES/NO): ");
  33.     input4.next(HUMAN);
  34.     
  35.     // THIS CREATES A CONDITION FOR ACCESSIBILITY( CONDITIONS TO PASS AND GAIN ACCESS)
  36.     
  37.     if (uEMAIL.equals(uEMAIL) && Userpassword.equals(Userpassword) && UserID.equals(UserID) && HUMAN.equals(HUMAN)) {
  38.         System.out.println("ACCESS GRANTED");
  39.     }

  40.    // THIS CREATES THE CONDITIONS NEEDED TO DENY ACCESS AND SENDS A NOTIFICATION TO THE END-USER IF THE USER MEETS THE CONDITION TO BE DENIED ACCESS

  41.     else if (userID.equals(UserID)) {
  42.         System.out.println("wrong UserPassword!");
  43.     } else if (Userpassword.equals(UserPassword)) {
  44.         System.out.println("wrong UserID!");
  45.     } else if (uEMAIL.equals(uEMAIL)){
  46.                 System.out.println("wrong email!!");
  47.                 
  48.                 } else if (HUMAN.equals(HUMAN)){
  49.                 System.out.println("not human!!!");
  50.                 
  51.                 
  52.                 }
  53.      else {
  54.         System.out.println("wrong UserID, EMAIL OR UserPassword OR U ARE NOT HUMAN!! check what your typing HUMAN/BOT!!!");
  55.     }

  56. }

  57. }

Comments

Popular posts from this blog

HOW TO MAKE ARTIFICIAL INTELLIGENCE WITH NOTEPAD++

OK so when you hear artificial intelligence you automatically think a super high-tech robot; well today i'm gonna show just how simple artificial intelligence actually is.

STEP 1: open notepad++ and copy the following code.
fname=inputbox ("komichiwa")
fname=inputbox ("i am ASUNA")
fname=inputbox ("whats your name")
fname=inputbox ("thats a good name")
fname=inputbox ("do you like anime or manga?")
fname=inputbox ("thats cool")
fname=inputbox ("pi=3.14")
fname=inputbox ("4*8=?")
fname=inputbox ("32")
fname=inputbox ("what is the capital of RUSSIA")
fname=inputbox ("MOSCOW")
fname=inputbox ("what is BERLIN")
fname=inputbox ("the capital of GERMANY")
fname=inputbox (" i^5=?")
fname=inputbox ("i")
fname=inputbox ("what is your favorite anime?")
fname=inputbox ("cool!!")
fname=inputbox ("what is your favorite manga")
fname=inp…

How to make cool HTML animations

today we"ll be doing html animations. although animation is considered quite difficult its actually fairly simple. And as always just copy the code and if you have any issues or concerns just comment and we"ll get right back to you.image as backgroundAWESOME!!AWESOME!!AWESOME!!AWESOME!!ALWAYS LEARN AT WIRED2TECH!!ALWAYS LEARN AT WIRED2TECH!!ALWAYS LEARN AT WIRED2TECH!!ALWAYS LEARN AT WIRED2TECH!! check out wired2tech where youll always learn something new and usefull:) AWESOME!!AWESOME!!AWESOME!!









<!DOCTYPE html> <html> <head> <title>image as background</title>  <marquee behavior="alternate">AWESOME!!</marquee>  <marquee behavior="alternate">AWESOME!!</marquee>  <marquee behavior="alternate">AWESOME!!</marquee>  <marquee behavior="alternate">AWESOME!!</marquee>  <marquee behavior="alternate">ALWAYS LEARN AT WIRED2TECH!!</marquee>  <marquee beha…

Animated HTML Dialog

CODE:

"HTML"


<html>
<body>

<h1>ANIMATED TEXT JS</h1>

<button onclick="typeWriter()">ACTIVATE</button>

<style>
@import url('https://fonts.googleapis.com/css?family=Press+Start+2P');
</style>
<link rel="stylesheet" href="css13.css">
<body style ="background-color: orange;">

<p id="OPEN"></p>

<script>
var a = 0;
var text = 'VISIT WIRED2TECH.ORG TO LEARN TO CODE.This project was made by: Mohammed Ibrahim Mirza Beig.This project used the font "Press Start 2P" which is licensed under the open font license and was obtained from google fonts.';
var frameSD = 60;
function typeWriter() {
  if (a < text.length) {
    document.getElementById("OPEN").innerHTML += text.charAt(a);
    a++;
    setTimeout(typeWriter, frameSD);
  }
}
</script>
</body>
</html>


"CSS"

h1{ color:gold; -webkit-text-fill-…