]> git.proxmox.com Git - pve-access-control.git/blobdiff - oathkeygen
add oath two factor auth, bump version to 3.0-14
[pve-access-control.git] / oathkeygen
diff --git a/oathkeygen b/oathkeygen
new file mode 100755 (executable)
index 0000000..84b6441
--- /dev/null
@@ -0,0 +1,11 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+use MIME::Base32 qw(RFC); #libmime-base32-perl
+
+my $test;
+open(RND, "/dev/urandom");
+sysread(RND, $test, 10) == 10 || die "read randon data failed\n";
+print MIME::Base32::encode($test) . "\n";
+