Skip to content

Instantly share code, notes, and snippets.

@zukka77
zukka77 / KeyLengthDetector.java
Created February 25, 2016 20:06 — forked from jehrhardt/KeyLengthDetector.java
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) {
package com.mycompany.ssl;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import java.util.List;
import javax.net.ssl.X509TrustManager;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Iterables;
@zukka77
zukka77 / CompositeX509KeyManager.java
Created December 19, 2015 01:50 — forked from codyaray/CompositeX509KeyManager.java
A composite KeyManager for doing SSL in Java with multiple keystores. See http://codyaray.com/2013/04/java-ssl-with-multiple-keystores
package com.mycompany.ssl;
import java.net.Socket;
import java.security.Principal;
import java.security.PrivateKey;
import java.security.cert.X509Certificate;
import java.util.List;
import javax.annotation.Nullable;
import javax.net.ssl.X509KeyManager;
@zukka77
zukka77 / nomi_italiani.txt
Created November 19, 2015 22:38 — forked from pdesterlich/nomi_italiani.txt
lista nomi italiani
abaco
abbondanza
abbondanzia
abbondanzio
abbondazio
abbondia
abbondina
abbondio
abdenago
abdon
@zukka77
zukka77 / cognomi.txt
Last active November 19, 2015 22:44 — forked from pdesterlich/cognomi.txt
lista cognomi italiani
Agostini
Aiello
Albanese
Amato
Antonelli
Arena
Baldi
Barbieri
Barone
Basile