Exemple #1
0
 /// <summary>
 /// Compute movie hash
 /// </summary>
 /// <param name="fileName">The complete media file path</param>
 /// <returns>The hash as Hexadecimal string</returns>
 public static string ComputeHash(string fileName)
 {
     byte[] hash = MovieHasher.ComputeMovieHash(fileName);
     return(MovieHasher.ToHexadecimal(hash));
 }
Exemple #2
0
 /// <summary>
 /// Compute movie hash
 /// </summary>
 /// <returns>The hash as Hexadecimal string</returns>
 public static string ComputeHash(Stream stream)
 {
     byte[] hash = MovieHasher.ComputeMovieHash(stream);
     return(MovieHasher.ToHexadecimal(hash));
 }
        /// <summary>
        /// Compute movie hash
        /// </summary>
        /// <returns>The hash as Hexadecimal string</returns>
        public static string ComputeHash(Stream stream)
        {
            var hash = MovieHasher.ComputeMovieHash(stream);

            return(Convert.ToHexString(hash).ToLowerInvariant());
        }