Skip to content

Instantly share code, notes, and snippets.

Jax.getGlobal().ApplicationHelper = Jax.Helper.create
patch_world: ->
Jax.World.prototype.pick_all_visible = () ->
context = this.context
w = context.canvas.width
h = context.canvas.height
data = new Uint8Array(w*h*4)
data.w = w
data.h = h
data.f = f = 4
$("canvas").remove();
c = document.createElement('canvas');
c.width = c.height = 300;
$(document.body).append(c);
$(c).css("width", "300px");
$(c).css("height", "300px");
$(c).css("position", "absolute");
$(c).css("top", "0px");
$(c).css("left", "0px");
$(c).css("border", "1px solid #000");
#!/usr/bin/env ruby
require 'openssl'
=begin
Implements the MAC generation process which needs to be applied to Standard 70
transaction requests and replies. Uses example data to assert correctness at
each step of the process.
This script generates the MAC and MAC residue for the example request message,