both of those ways give me errors that are NOT present when I use this

      {
      key0: OpenSSL::Digest::SHA256.new.digest("1 #{key}"),
      key1: OpenSSL::Digest::SHA256.new.digest("2 #{key}"),
      key2: OpenSSL::Digest::SHA256.new.digest("3 #{key}"),
      key3: OpenSSL::Digest::SHA256.new.digest("4 #{key}")
      }


the error is: `[]': can't convert Symbol into Integer (TypeError)

and it is from here

r = r_operation(subkeys[:key0], l, r)

-- 
Posted via http://www.ruby-forum.com/.