Skip to content

Instantly share code, notes, and snippets.

@dirkjanfaber
Last active August 29, 2015 14:24
Show Gist options
  • Save dirkjanfaber/1b7b92f70cab5056593f to your computer and use it in GitHub Desktop.
Save dirkjanfaber/1b7b92f70cab5056593f to your computer and use it in GitHub Desktop.
Encode Xerox PIN code
#/bin/env perl
#
# Simple script for encoding a Xerox PIN code.
for (0 .. 3 ) {
my @c = split(//, qw/@ABCDEFGHI [ZYX_^]\\SR TUVWPQRS\\] UTWVQPSR]\\/[$_]);
print @c[(split(//, $ARGV[0]))[$_]];
}
print "\n";
@dirkjanfaber
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment