Guessing Bank PINs by Winning a Mastermind Game

  • Authors:
  • Riccardo Focardi;Flaminia L. Luccio

  • Affiliations:
  • Università Ca’ Foscari Venezia, c/o Dipartimento di Scienze Ambientali, Informatica e Statistica (DAIS), via Torino 155, 30172, Venezia, Italy;Università Ca’ Foscari Venezia, c/o Dipartimento di Scienze Ambientali, Informatica e Statistica (DAIS), via Torino 155, 30172, Venezia, Italy

  • Venue:
  • Theory of Computing Systems - Special Issue: Fun with Algorithms
  • Year:
  • 2012

Quantified Score

Hi-index 0.00

Visualization

Abstract

In this paper we formally prove that the problem of cracking, i.e., correctly guessing, bank PINs used for accessing Automated Teller Machines and the problem of solving the Generalized Mastermind Game are strictly related. The Generalized Mastermind Game with N colors and k pegs is an extension of the well known Mastermind game, played with 6 colors and 4 pegs. The rules are the same, one player has to conceal a sequence of k colored pegs behind a screen and another player has to guess the exact position and colors of the pegs using the minimal number of moves. We first introduce a general game, called the Extended Mastermind Game (EMG), and we then formally prove it includes both the Generalized Mastermind Game and the PIN cracking Problem. We then present some experimental results that we have devised using a computer program that optimizes a well known technique presented by Knuth in 1976 for the standard Mastermind game. We finally show that the program improves the as state-of-the-art Mastermind solvers as it is able to compute strategies for cases which were not yet covered. More interestingly, the same solving strategy is adapted also for the solution of the PIN cracking problem.