summaryrefslogtreecommitdiffstats
path: root/src/main/radsecret
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/radsecret')
-rwxr-xr-xsrc/main/radsecret7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/radsecret b/src/main/radsecret
new file mode 100755
index 0000000..2a03a2e
--- /dev/null
+++ b/src/main/radsecret
@@ -0,0 +1,7 @@
+#!/usr/bin/env perl
+#
+# A tool which generates strong shared secrets.
+#
+use Convert::Base32;
+use Crypt::URandom();
+print join('-', unpack("(A4)*", lc encode_base32(Crypt::URandom::urandom(12)))), "\n";