Skip to content

Instantly share code, notes, and snippets.

@SpikesDivZero
SpikesDivZero / keybase.md
Created April 7, 2017 23:09
Keybase Verification

Keybase proof

I hereby claim:

  • I am spikesdivzero on github.
  • I am spikes (https://keybase.io/spikes) on keybase.
  • I have a public key ASCKNe7VRzAke5Sxbirjl--senBwMBqD4UVDE3jsmIVW1go

To claim this, I am signing this object:

@SpikesDivZero
SpikesDivZero / hook-chain.sh
Created April 29, 2016 18:31 — forked from paunin/hook-chain.sh
git hook-chain
#!/bin/bash
# http://stackoverflow.com/questions/8730514/chaining-git-hooks
# author: orefalo
hookname=`basename $0`
FILE=`mktemp`
trap 'rm -f $FILE' EXIT
cat - > $FILE
@SpikesDivZero
SpikesDivZero / KeyLengthDetector.java
Last active August 29, 2015 14:13 — forked from jehrhardt/KeyLengthDetector.java
Forked so as to keep a copy around. Original description was "Detect the allowed size of AES keys on the JVM. If the size is <= 256, it is limited. To fix it JCE unlimted stregth files are needed."
import javax.crypto.Cipher;
import java.security.NoSuchAlgorithmException;
public class KeyLengthDetector {
public static void main(String[] args) {
int allowedKeyLength = 0;
try {
allowedKeyLength = Cipher.getMaxAllowedKeyLength("AES");
} catch (NoSuchAlgorithmException e) {