Skip to content

Instantly share code, notes, and snippets.

@WolfWings
WolfWings / letters.txt
Created August 22, 2024 04:37
Minimal UTF-8 "Large Number" meta-font
╭─╮ ╮ ╶─╮╶─╮╷ ╷┌─╴╭─╴╶─┐╭─╮╭─╮
│/│ │ ╭─╯ ─┤╰─┤└─╮├─╮ ╭╯├─┤╰─┤
╰─╯ ┴ └─╴╶─╯ ╵╶─╯╰─╯ ╵ ╰─╯╶─╯
@WolfWings
WolfWings / pbkdf2.c
Last active September 17, 2018 20:52
Little-endian (x86) PBKDF2 (SHA1) which relies on the AF_ALG user-space interface to the Linux Kernel Cryptography system
#include <sys/socket.h>
#include <linux/if_alg.h>
#include <string.h>
#include <unistd.h>
#include <byteswap.h>
static struct sockaddr_alg sa = {
.salg_family = AF_ALG
, .salg_type = "hash"
, .salg_name = "hmac(sha1)"