# File lib/backup/cli/utility.rb, line 172 def decrypt case options[:encryptor].downcase when 'openssl' base64 = options[:base64] ? '-base64' : '' password = options[:password_file].empty? ? '' : "-pass file:#{options[:password_file]}" salt = options[:salt] ? '-salt' : '' %x[openssl aes-256-cbc -d #{base64} #{password} #{salt} -in '#{options[:in]}' -out '#{options[:out]}'] when 'gpg' %x[gpg -o '#{options[:out]}' -d '#{options[:in]}'] else puts "Unknown encryptor: #{options[:encryptor]}" puts "Use either 'openssl' or 'gpg'." end end