Package info.riemannhypothesis.crypto

Source Code of info.riemannhypothesis.crypto.Week3

package info.riemannhypothesis.crypto;

import info.riemannhypothesis.crypto.tools.BlockSequence;
import info.riemannhypothesis.crypto.tools.VideoHash;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;

public class Week3 {

  public static void main(String[] args) throws IOException {
    String path = "/Users/MarkusSchepke/Downloads/video-task.mp4";
    File file = new File(path);

    FileInputStream fileInputStream = new FileInputStream(file);

    BlockSequence blocks = new BlockSequence(1024, fileInputStream, (int) file.length());
    VideoHash videoHash = new VideoHash();

    // System.out.println("Beginning of the file: " +
    // bytes.toHexString().substring(0, 100));
    System.out.println("Hash: " + videoHash.hash(blocks).toHexString());
    fileInputStream.close();
  }

}
TOP

Related Classes of info.riemannhypothesis.crypto.Week3

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.