Skip to content

Instantly share code, notes, and snippets.

View randomoracle's full-sized avatar

Cem Paya randomoracle

View GitHub Profile
@randomoracle
randomoracle / snapsha2.c
Created October 12, 2017 22:40
Experimental SHA256 implementation for exploring behavior of compression function
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
static const size_t kBlocksizeSHA256 = 64;
// Round constants
static const unsigned int K[] = {
@randomoracle
randomoracle / checkciphers.sh
Last active August 29, 2015 14:06
Check ciphersuites supported by a website using openssl
#!/bin/bash
HOSTNAME=$1
for cipher in `openssl ciphers | tr ":" "\n"`;
do
echo | openssl s_client -connect $HOSTNAME:443 -servername $HOSTNAME -cipher $cipher 2>&1;
done | grep "Cipher.is" | grep -v NONE