79: Passcode derivation

This commit is contained in:
VicRen
2021-01-01 08:38:34 +08:00
parent 8b26b52149
commit 6718e6468d
2 changed files with 61 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
package main
//A common security method used for online banking is to ask the user for three random characters from a passcode. For example, if the passcode was 531278, they may ask for the 2nd, 3rd, and 5th characters; the expected reply would be: 317.
//
//The text file, keylog.txt, contains fifty successful login attempts.
//
//Given that the three characters are always asked for in order, analyse the file so as to determine the shortest possible secret passcode of unknown length.
func main() {
}