commit b4b5a092aef0ebad8be68d8f2eed96180b9fcfd6
parent 7569b9d28ef9a829ed06a852f5031e82402d6ced
Author: Samir Parikh <noreply@samirparikh.com>
Date: Wed, 2 Mar 2022 14:03:45 +0000
update hangman game to use message authentication checks to prevent
tampering with cookie that maintains state
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/hangman3.cgi b/hangman3.cgi
@@ -1,7 +1,8 @@
#!/usr/bin/perl
-# file: hangman1.cgi
-# hangman game using hidden fields to maintain state
+# file: hangman3.cgi
+# hangman game using simple cookie and message authentication
+# state to maintain state
use IO::File();
use CGI qw( :standard );