Skip to content

Instantly share code, notes, and snippets.

View edigaryev's full-sized avatar

Nikolay Edigaryev edigaryev

View GitHub Profile
@edigaryev
edigaryev / README.md
Created October 18, 2022 09:08
Docker Registry without Docker
git clone https://github.com/distribution/distribution.git
cd distribution
go run cmd/registry/main.go serve config.yml
@edigaryev
edigaryev / lanauth.c
Created January 26, 2019 10:24
KABiNET authorizer
/*
* lanauth client
* (c) visir
* "THE BEER-WARE LICENSE" (Revision 42):
* <visir@telenet.ru> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a beer in return.
* compile: gcc -O2 -Wall -s -lcrypto -o lanauth lanauth.c
* run: ./lanauth -p yourpassword
*/
@edigaryev
edigaryev / feistel.c
Created December 20, 2011 05:52
Feistel cipher
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#define ROUNDS 8
#define ACTION_ENCRYPT "-e"
#define ACTION_DECRYPT "-d"
#define MODE_ECB "ecb"