Package info.riemannhypothesis.crypto

Source Code of info.riemannhypothesis.crypto.Week4

package info.riemannhypothesis.crypto;

import info.riemannhypothesis.crypto.tools.ByteSequence;

public class Week4 {

  public static void main(String[] args) {
    // TODO Auto-generated method stub
    ByteSequence iv = ByteSequence.fromHexString("20814804c1767293b99f1d9cab3bc3e7");
    byte[] zeros = new byte[] {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
    ByteSequence m1 = new ByteSequence("Pay Bob 100$").append(zeros);
    ByteSequence m2 = new ByteSequence("Pay Bob 500$").append(zeros);
    System.out.println("Result IV: " + iv.xor(m1).xor(m2).toHexString());
  }

}
TOP

Related Classes of info.riemannhypothesis.crypto.Week4

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.