how to get file MD5 from FileReader readAsArrayBuffer()

anyone know how to get file MD5 from Filereader readAsArrayBuffer() ?

my current solution is using CryptoJS

  1. convert arraybuffer to base64
  2. decode base64 to binary string.
  3. use CryptoJS.MD5(p_str).toString(CryptoJS.enc.Hex).toUpperCase();

this method get me correct MD5 but I hope to skip the part decode the base64.
the suggestions I found is using readAsBinaryString() which deprecated function.