Sha256: e85f3ed53d15384ae3d488f03d50d0177bd06690047026ab42a44a0a77741627

Contents?: true

Size: 271 Bytes

Versions: 5

Compression:

Stored size: 271 Bytes

Contents

#!/usr/bin/env ruby

if ARGF.file == STDIN
  puts "You forgot to give me a file!"
  abort "Usage: ruby application_key_converter.rb spotify_appkey.key > new_spotify_appkey.key"
end

old_format = ARGF.read.split.join
new_format = [old_format].pack("H*")

print new_format

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hallon-0.18.2 dev/application_key_converter.rb
hallon-0.18.1 dev/application_key_converter.rb
hallon-0.18.0 dev/application_key_converter.rb
hallon-0.17.0 dev/application_key_converter.rb
hallon-0.16.0 dev/application_key_converter.rb