Skip to content

Instantly share code, notes, and snippets.

@ShermanA-13
ShermanA-13 / pull_request_template.md
Created May 10, 2022 15:11
Pull Request Template

____ Wrote Tests ____ Implemented ____ Reviewed

Necessary checkmarks:

  • [] All Tests are Passing
  • [] The code will run locally

Type of change

@ShermanA-13
ShermanA-13 / be_mod3_intermission_work.md
Last active May 6, 2022 08:48
BE Mod3 Intermission Work

Authentication / Authorization

  1. In order to store a user, typically you need a username, password, and email. You could also ask for first name and last name.
  2. Never store plain text passwords in databases. Instead, store password hashes which can be created using the right hashing algorithm including a salt. Salts are used to safegaurd passwords in storage. A new salt is randomly generated for each password. Typically, the salt and the password are concatenated and fed to a cryptographic hash function, and the output hash value (but not the original password) is stored with the salt in a database. When authenticating users, the password input is subjected to the same hashing process and the hashes are compared. There is also Bcrypt and other encryption methods
  3. Authentication status
  4. Some things that will make a secure login page - make a seperate login page that can only be accessed with https and submits using https, limit the number of times a user can attempt to login during a period of time,

Intermediate SQL Workshop

  • Run psql
  • You may need to run CREATE DATABASE intermediate_sql;
  • To exit this shell, you can run CTRL d

Create tables

Let's create some tables in the database.

@ShermanA-13
ShermanA-13 / b2_intermission_work.md
Last active March 20, 2022 01:40 — forked from mikedao/b2_intermission_work.md
B2 Intermission Work Submission

B2 Intermission Work

Answer these Check for Understanding questions as you work through the assignments.

HTML

  1. What is HTML? HTML is hyper text markup language and is used to create websites, allowing the website to displays the information in a readable manner for the end user.
  2. What is an HTML element? An element has a start and end tag with content in between.

Checklist/Rubric

To make a copy of this rubric:

  1. Click the button in the upper right-hand corner that says Fork. This is now your copy of the document.
  2. To save your work, click the green button in the bottom right-hand corner. You can always come back and re-edit your gist.

Part I: Creating Directories and Files; Initializing Git and Pushing to GitHub

  • I named my directories correctly.