Skip to content

Instantly share code, notes, and snippets.

View sooryan's full-sized avatar

J.M. Soorya Narayan sooryan

View GitHub Profile
@sooryan
sooryan / blake2.md
Last active March 12, 2024 02:37
A quick summary of blake2, a cryptographic hash function

BLAKE2

  • BLAKE2 is an improved version of the SHA-3 finalist BLAKE, and was designed by a team of experts in cryptanalysis, implementation, and cryptographic engineering; namely Jean-Philippe Aumasson, Samuel Neves, Zooko Wilcox-O'Hearn and Christian Winnerlein.

  • BLAKE2s (the one checksum currently uses) computes a message digest that is 256 bits long, and represented as a 64-character hexadecimal number, e.g. 4264cb256d94533b6e152da59256638bc6adfda3efc5550d7607d4e6e45592fc.

Types

  • BLAKE2b (or just BLAKE2) is optimized for 64-bit platforms and produces digests of any size between 1 and 64 bytes.
@sooryan
sooryan / loading.py
Created July 25, 2015 07:09
A simple loading animation in the command line with python
import time,sys
while True:
blah="\|/-\|/-"
for l in blah:
sys.stdout.write(l)
sys.stdout.flush()
sys.stdout.write('\b')
time.sleep(0.2)
@sooryan
sooryan / hacker.css
Created July 22, 2015 19:22
An attempt to replicate hacker typer
body {
background:#000;
color: #33CC33;
font-family:Consolas,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New;
}
.console{
background-color: rgba(0,0,0,0.5);
}
.Yes {