Skip to content

Instantly share code, notes, and snippets.

@nakaz
nakaz / README.md
Created August 10, 2017 02:35 — forked from JoeKarlsson/README.md
Lecture on password encryption, hashing, and bcrypt

How To Safely Store A Password

Use bcrypt. Use bcrypt. Use bcrypt. Use bcrypt. Use bcrypt. Use bcrypt. Use bcrypt. Use bcrypt. Use bcrypt. Use bcrypt.

Why Not {MD5, SHA1, SHA256, SHA512, SHA-3, etc}?

These are all general purpose hash functions, designed to calculate a digest of huge amounts of data in as short a time as possible. This means that they are fantastic for ensuring the integrity of data and utterly rubbish for storing passwords.

bcrypt Solves These Problems

How? Basically, it’s slow as hell. It uses a variant of the Blowfish encryption algorithm’s keying schedule, and introduces a work factor, which allows you to determine how expensive the hash function will be.

Keybase proof

I hereby claim:

  • I am nakaz on github.
  • I am nakaz (https://keybase.io/nakaz) on keybase.
  • I have a public key ASCG0jS5-JK0kVfSUpr5tPgbblasfmnz7oEyvWOh1XV9Pwo

To claim this, I am signing this object:

Have a nice day! :D

@nakaz
nakaz / exercise-reactrouter.md
Created October 25, 2017 01:00
React Router Exercise

React Router Exercise

WIP Oct. 24, 2017

AWS S3 Get Started

  1. Sign up for AWS Free Tier account
  2. Build secure IAM settings
  3. Set up roles, groups
  4. Basic permissions
  5. Build S3 bucket
    • Set permissions to IAM group/user
  6. AWS SDK for API
@nakaz
nakaz / coffee-warehouse.md
Last active September 30, 2017 23:15
Coffee Warehouse API

Coffee Warehouse API

You've been tasked to build a RESTful API that will help serve and manage data of coffee at a warehouse. Another team will be depending this API in building a front-end application to interact with it.

Draft a routes overview table or list of how you plan on designing your API and submit it to the senior developer for confirmation.

An example can be found on buzzword-bingo: https://github.com/devleague/Buzz-Word-Bingo/blob/master/README.md

We'll be depending on you to build a well-designed RESTful API for our front-end team to work with. Good route naming conventions will be key in providing a simple yet effective API for others to work with.

@nakaz
nakaz / py-functions.md
Last active September 19, 2017 04:22
Python function exercise

Python Functions

Building a bunch of scripts to run.


Getting Started

You will need the os,re, and sys Standard Python Libraries.

Instructors should provide a py_functions.zip file to help you test your scripts on.

@nakaz
nakaz / nest-chat.md
Last active September 19, 2017 01:51
A python chat server for all sneks to sssssspeak with each other

Nest Chat

Def "Nest": a group of snakes, vipers, or in this case, pythons.

A place for all pythonists to sssssssspeak with each other.

Goals

You will need the sys standard library.

@nakaz
nakaz / README.md
Last active September 19, 2017 00:37
Cyber Prep - Day 7
  1. Functions

    • def
    • Why we use functions
    • return statements
    • global vs. local variables
    • arguments pass by reference
    • tuple arguments ???
    • keyword and default arguments
  2. Create a python script

This exercise can be performed in Bash, CMD, or Powershell

Follow the instructions

Build a bash-exercise.sh file in your HOME directory.

Do your work in the scripts.sh file. Make sure your bash-exercise.sh is executable. You may comment out lines respective to each task to avoid overwriting/errors.

  1. Build a folders directory and inside, build 10 new directories with the incremented name of dir. We should get something like ./folders/dir1, ./folders/dir2 and so forth.
  2. Create a projects directory in ./folders/dir1 and build a README.md file in the projects dir.