Examples/Vulnerable_CustomCryptographicAlgorithm_2.ps1

Add-Type -TypeDefinition @"
public class CustomAlgo : System.Security.Cryptography.HashAlgorithm {
    public override void Initialize() {}
    protected override void HashCore(byte[] array, int ibStart, int cbSize) {}
    protected override byte[] HashFinal() { return new byte[0]; }
}
"@