Skip to content

Instantly share code, notes, and snippets.

Cryptographic Best Practices

Putting cryptographic primitives together is a lot like putting a jigsaw puzzle together, where all the pieces are cut exactly the same way, but there is only one correct solution. Thankfully, there are some projects out there that are working hard to make sure developers are getting it right.

The following advice comes from years of research from leading security researchers, developers, and cryptographers. This Gist was [forked from Thomas Ptacek's Gist][1] to be more readable. Additions have been added from

How to setup a practically free CDN

I've been using [Backblaze][bbz] for a while now as my online backup service. I have used a few others in the past. None were particularly satisfactory until Backblaze came along.

It was - still is - keenly priced at a flat $5 (£4) per month for unlimited backup (I've currently got just under half a terabyte backed-up). It has a fast, reliable client. The company itself is [transparent about their operations][trans] and [generous with their knowledge sharing][blog]. To me, this says they understand their customers well. I've never had reliability problems and everything about the outfit exudes a sense of simple, quick, solid quality. The service has even saved the day on a couple of occasions where I've lost files.

Safe to say, I'm a happy customer. If you're not already using Backblaze, [I highly recommend you do][recommend].

Taking on the big boys with B2

@hnq90
hnq90 / master-javascript-interview.md
Created July 13, 2021 06:39 — forked from Geoff-Ford/master-javascript-interview.md
Eric Elliott's Master the JavaScript Interview Series
@hnq90
hnq90 / LearnGoIn5mins.md
Created January 6, 2021 06:34 — forked from prologic/LearnGoIn5mins.md
Learn Go in ~5mins
@hnq90
hnq90 / .vimrc
Last active April 12, 2020 07:14
.vimrc
" vim:fdm=marker
" Settings -------------------------------------------------------------
" Preamble {{{
" Make vim more useful {{{
set nocompatible
" }}}
@hnq90
hnq90 / gist:8385edda720fc252abfd679798d7af02
Created June 11, 2019 01:21 — forked from mikeyk/gist:1329319
Testing storage of millions of keys in Redis
#! /usr/bin/env python
import redis
import random
import pylibmc
import sys
r = redis.Redis(host = 'localhost', port = 6389)
mc = pylibmc.Client(['localhost:11222'])
autofilename v0.1.3
autoimport v1.5.3
aws-amplify-vscode v0.0.4
ayu v0.18.0
bash-debug v0.3.4
better-toml v0.3.2
bracket-pair-colorizer v1.0.61
code-settings-sync v3.2.9
code-spell-checker v1.7.6
color-highlight v2.3.0
{
"editor.fontFamily": "Fira Code",
"editor.fontSize": 11,
"editor.fontLigatures": true,
"editor.renderWhitespace": "all",
"editor.rulers": [
120
],
"telemetry.enableTelemetry": false,
"extensions.autoUpdate": true,
@hnq90
hnq90 / pre_push
Created April 25, 2019 10:18
Rikkeisoft GitHub Pre-Push Hook
#!/bin/bash
# HOW TO USE: Copy this file to `.git/hooks` in your project directory.
remote_url="$2"
warning="[Warning] Don't push the project' source code to GitHub unless you are allowed."
policy_url="Rikkeisoft's IPR Regulation: https://rikkei.vn/help/view/97"
prompt_user() {
echo $warning