Writing a simple example of Feistal Cipher

Writing a simple example of Feistal Cipher

We talk about the Feistal Cipher and implement a simple proof of concept to test the algorithm out. Computerphile video: https://www.youtube.com/watch?v=FGhj3CGxl8I Source code: package org.ea; import java.security.MessageDigest; import java.util.Arrays; public class FeistelAlg { private final static String plainText = "the brown fox jumped over the lazy dog"; public static void doRound(byte[] left, byte[] right) throws…

Inference with Tensorflow in Java

Inference with Tensorflow in Java

We talk about the struggles I had with running inferences in Java using a Keras model in tensorflow. This is the train.py used in this example. import tensorflow as tf #import tensorflowjs as tfjs import os from datetime import datetime from tensorflow.keras.models import Sequential, Model from tensorflow.keras.layers import Conv2D, MaxPooling2D, BatchNormalization, Layer from tensorflow.keras.layers import…