The Commodore 64 Can Now Be a Two-Factor Authenticator

A Commodore 64 home computer on a blue background

The Commodore 64 might be 40 years old, but there’s still an active community for developing new games and software for the once-popular 6-bit computer. With the help of a new program, TOTP-C64, the C64 can act as a two-factor authentication app for your online accounts.

Cameron Kaiser, perhaps best known as the software developer for the Classilla and TenFourFox web browsers, has released a new program for the Commodore 64 that turns it into a two-factor authenticator app. TOTP-C64 can generate real-time codes that should be compatible with any service that supports app-based 2FA, like Google, Facebook, Discord, Mastodon, and others.

RELATED: The Best-Selling PC of All Time: Commodore 64 Turns 40

Kaiser wrote in a blog post about the project, “Some of you are asking already if this idea is totally nuts or just mostly. But consider: the C64 has a very small attack surface and it can be made completely airgapped. Keys can be entered manually, or stored as binary files which you have to know the file, offset and length to correctly use (unless you make the entire file the key). Heck, you have to even know what disk (or cassette tape?) it’s on. Plus, anything fun is always a satisfactory justification!”

2FA on Commodore SX-64
Authenticator running on a Commodore SX-64

The blog post goes into detail about the work required, which involved creating an SHA-1 hash function that could run on the limited 6502 processor, and finding a way to track the current time without a built-in hardware clock. The result is an impressive feat of software engineering, and can generate 2FA codes as well as an authenticator app on a phone or modern computer, unless the key is longer than 64 bytes.

You can check out the code on GitHub at the source link below, and there’s also a pre-compiled version that can be run directly on a Commodore 64 or emulator.

Source: Old Vintage Computing Research, GitHub

  • Related Posts

    AI can now generate entire songs on demand. What this means for music as we know it

    Written by Oliver Bown, UNSW Sydney In March, we saw the launch of a “ChatGPT for music” called Suno, which uses generative AI to produce realistic songs on demand from…

    Newly discovered subatomic particle may be the universe’s mythical ‘glueball’

    BEIJING — In the fascinating realm of particle physics, scientists are constantly on the hunt for new subatomic particles that can shed light on the fundamental building blocks of our…

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    You Missed

    AI can now generate entire songs on demand. What this means for music as we know it

    • 60 views
    AI can now generate entire songs on demand. What this means for music as we know it

    Newly discovered subatomic particle may be the universe’s mythical ‘glueball’

    • 35 views
    Newly discovered subatomic particle may be the universe’s mythical ‘glueball’

    Deceitful tactics by artificial intelligence exposed: ‘Meta’s AI a master of deception’ in strategy game

    • 53 views
    Deceitful tactics by artificial intelligence exposed: ‘Meta’s AI a master of deception’ in strategy game

    Caterbot or Robatapillar? Scientists create bug-like robot using origami

    • 41 views
    Caterbot or Robatapillar? Scientists create bug-like robot using origami

    Mysteries of the Carrington Event, the largest solar superstorm in modern times, unraveled by tree rings

    • 34 views
    Mysteries of the Carrington Event, the largest solar superstorm in modern times, unraveled by tree rings

    New ‘atomic glue’ could pave way for powerful new quantum devices

    • 20 views
    New ‘atomic glue’ could pave way for powerful new quantum devices