lib/megar/crypto/support.rb
def decompose_file_key(key)
    [
      key[0] ^ key[4],
      key[1] ^ key[5],
      key[2] ^ key[6],
      key[3] ^ key[7]
    ]
  end
# Returns a decomposed file +key+
#
# Javascript reference implementation: function startdownload2(res,ctx)
#
Returns a decomposed file +key+
Javascript reference implementation: function startdownload2(res,ctx)
Returns a decomposed file + key + Javascript reference implementation : function startdownload2 ( res ctx )
def decompose_file_key(key)
    [
      key[0] ^ key[4],
      key[1] ^ key[5],
      key[2] ^ key[6],
      key[3] ^ key[7]
    ]
  end
def decompose_file_key ( key ) [ key [ 0 ] ^ key [ 4 ] , key [ 1 ] ^ key [ 5 ] , key [ 2 ] ^ key [ 6 ] , key [ 3 ] ^ key [ 7 ] ] end
Returns a decomposed file +key+
Javascript reference implementation: function startdownload2(res,ctx)
Returns a decomposed file + key + Javascript reference implementation : function startdownload2 ( res ctx )
key