Sha256: 6905483c90493f0e0f6ca53d9b44807c5103400277570eac8653959ac8855e95

Contents?: true

Size: 322 Bytes

Versions: 26

Compression:

Stored size: 322 Bytes

Contents

#!/usr/bin/env ruby

lower = ('0'..'Z').to_a
upper = ('0'..'z').to_a
extra = '!"#$%&\'()0=~|@`{}[]*:,./_<>?_;:]L*-+'.scan(/./)

possiblities = lower + upper + extra

output_string = ''
output_length = (ARGV[0] || 8).to_i

output_length.times do |n|
  output_string << possiblities.shuffle.first()
end

puts output_string

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
ix-cli-0.0.27 bin/ix-pass
ix-cli-0.0.26 bin/ix-pass
ix-cli-0.0.25 bin/ix-pass
ix-cli-0.0.24 bin/ix-pass
ix-cli-0.0.23 bin/ix-pass
ix-cli-0.0.22 bin/ix-pass
ix-cli-0.0.21 bin/ix-pass
ix-cli-0.0.20 bin/ix-pass
ix-cli-0.0.19 bin/ix-pass
ix-cli-0.0.18 bin/ix-pass
ix-cli-0.0.17 bin/ix-pass
ix-cli-0.0.16 bin/ix-pass
ix-cli-0.0.15 bin/ix-pass
ix-cli-0.0.14 bin/ix-pass
ix-cli-0.0.13 bin/ix-pass
ix-cli-0.0.12 bin/ix-pass
ix-cli-0.0.11 bin/ix-pass
ix-cli-0.0.10 bin/ix-pass
ix-cli-0.0.9 bin/ix-pass
ix-cli-0.0.7 bin/ix-pass