This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import javax.net.ssl.SSLParameters; | |
| import javax.net.ssl.SSLSocket; | |
| import javax.net.ssl.SSLSocketFactory; | |
| import java.io.*; | |
| /** Establish a SSL connection to a host and port, writes a byte and | |
| * prints the response. See | |
| * http://confluence.atlassian.com/display/JIRA/Connecting+to+SSL+services | |
| */ | |
| public class SSLPoke { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| From 9cb4cb040e77372ea892bba81136d2741a6707bb Mon Sep 17 00:00:00 2001 | |
| From: SATOH Fumiyasu <[email protected]> | |
| Date: Thu, 31 May 2012 13:13:41 +0900 | |
| Subject: [PATCH] slappasswd: Add support loading a dynamically loadable | |
| module | |
| Add "-o module-path=<pathspec>" and "-o module-load=<filename>" | |
| options to load a dynamically loadable password hash module | |
| (e.g., slapd-sha2). | |
| --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body { | |
| font-size: 14px; | |
| line-height: 1.6; | |
| background-color: white; | |
| font: 13.34px helvetica,arial,freesans,clean,sans-serif; | |
| *font-size: small; | |
| color: black; | |
| } | |
| table { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.IO; | |
| using System.Messaging; | |
| using System.Text; | |
| using Newtonsoft.Json; | |
| public class JsonMessageFormatter : IMessageFormatter | |
| { | |
| private static readonly JsonSerializerSettings DefaultSerializerSettings = | |
| new JsonSerializerSettings { |
NewerOlder