Skip to content

Instantly share code, notes, and snippets.

@caspencer
caspencer / OpenSslCompatDeriveBytes.cs
Created November 4, 2011 16:12
Derives a key from a password using an OpenSSL-compatible version of the PBKDF1 algorithm.
using System;
using System.Collections.Generic;
using System.Security.Cryptography;
using System.Text;
namespace OpenSslCompat
{
/// <summary>
/// Derives a key from a password using an OpenSSL-compatible version of the PBKDF1 algorithm.
/// </summary>
@caspencer
caspencer / main.c
Created November 9, 2011 02:45
attiny85_shift_register - displays digits 0 through 9 on 7-seg LED using 74HC595 for I/O expansion
/*
* attiny85_shift_register - displays digits 0 through 9 on 7-seg LED using 74HC595 for I/O expansion
*
* [ATtiny85 AVR] ==> [74HC595 shift register] ==> [7-seg led display]
*/
#include <avr/io.h>
#include <util/delay.h>
// serial data-in