The Spanner logo
    • Home
    • Blog
      • Blog home
      • RSS
    • Login
    • Home
    • Blog
      • Blog home
      • RSS
    • Login
    The Spanner logo

    The Spanner
    Web security blog

    Made by Gareth Heyes
    Follow me on Twitter: @garethheyes

    Javascript for hackers!

    Hackvertor logo
    Shazzer logo
    My Github account
    Recent posts
    Pure-CSS 3D world collision detection How to write a Hackvertor tagIntroducing Feedworm: A Privacy-First RSS Reader That Lives in DevToolsSpeedy RSVP extensionAutoVaderHackvertor history and tag finderShadow Repeater v1.2.3 releaseBurp Hackvertor v2.1.24 releaseHacking roomsXSSing TypeErrors in SafarivalueOf: Another way to get thisMaking the Unexploitable Exploitable with X-Mixed-Replace on FirefoxThe curious case of the evt parameterCSS-Only Tic Tac Toe ChallengeRewriting relative urls with the base tag in SafariBypassing DOMPurify with mXSSNew IE mutation vectorHow I smashed MentalJSMentalJS DOM bypassAnother XSS auditor bypassXSS Auditor bypassBypassing the IE XSS filterUnbreakable filterMentalJS bypassesmXSSJava SerializationBypassing the XSS filter using function reassignmentRPOSandboxed jQueryX-Domain scroll detection on IE using focusEpic fail IEnew operatorDecoding complex non-alphanumeric JavaScriptHacking FirefoxDOM ClobberingBypassing XSS AuditorThe evolution of codeNon-Alpha PHP in 6-7 charsetTweetable PHP-Non AlphaMentalJS for PHP

    Passwords

    By Gareth Heyes (@hackvertor)

    Published 19 years 3 months ago • Last updated March 22, 2025 • ⏱️ 2 min read

    ← Back to articles

    I couldn't sleep last night. Probably too much caffeine or coding, most people count sheep to help them sleep. I thought I'd invent an authorisation system :)

    The basic idea is that a password is replaced with a Text file key and PIN number, so a user only needs to remember a 4 digit pin number to login to a web site rather than a username and password combination. Every time a user wishes to login they simply find the relevant file with the key and enter their name and pin.

    The text file contains a string with "HeyesKey:hashgoeshere@domaingoeshere", this is important because it solves the problem of phishing as well. If the browsers decided to implement a clipboard check or submission check then sites could be identified as bogus really easily. Now even if an attacker found your HeyesKey text file and they knew your first name, they would still need to guess the correct PIN number in order to login. The system borrows from the real world with how ATM machines works, so the Key is like your debit/credit card and if you enter your pin incorrectly 3 times the account is disabled.

    See a demo here:- http://www.businessinfo.co.uk/labs/HeyesAuthMethod/heyes_auth_test.php

    Source code here:- HeyesAuthMethod

    Advantages:-

    1. Could prevent all types of phishing.
    2. 4 character pin instead of a long password.
    3. Keys stored in plain text so they could be encrypted and stored in
      a safe place.
    4. Accounts can be disabled because brute force DOS attacks would be
      very difficult.

    Disadvantages:-

    1. Could be hard for someone to understand at first.
    2. Users might not like copying and pasting a text file to login.

    ← Back to articles