changeset 478:8956a404dba6

Added random password generator.
author edogawaconan <me@myconan.net>
date Mon, 26 Aug 2013 17:51:18 +0900
parents be8a91c2fd64
children 5df62be67e5d
files bin/pwgen
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/pwgen	Mon Aug 26 17:51:18 2013 +0900
@@ -0,0 +1,7 @@
+#!/usr/bin/env ruby
+
+require 'securerandom'
+
+5.times do |n|
+  puts "#{n}: #{SecureRandom.urlsafe_base64(12)}"
+end