Giter Club home page Giter Club logo

userregistration-demo's Introduction

User Registration Demo (WIP)

Note: This project is for educational purposes and should not be used in a production environment.
An Express demo-app featuring encrypted user signup forms, user login forms & session variables (cookies). All stored in a .json format.
Login preview


Goal

The goal of this project is to function as a reference for teaching, and learning, the fundamentals of:

  • Cryptography (Two-way (en|de)cryption, incl. salt & pepper)
  • Hashing algorithms (One-way encryption)
  • GET/POST request handling
  • Handling user data
  • Managing databases / datasets
  • Spotting edge cases
  • Input sanitization
  • Session files / Cookies

Todo

  • Edge case: Add a redirect callback wherever /login is referenced
  • Add "Edit Profile" functionality; display name, password, etc.
  • Define "login" protected zones in a more intuitive manner.
  • Sanitize inputs (no special characters in name etc.)
  • Add a NoSQL/SQL version.

Ideally this project should be segmented and further explained in a wiki, step by step. Detailing the wrong ways & the less wrong ways.
Might get to that eventually, for now a classroom environment will do.


Setup

  • Clone repository
  • npm install
  • A 32-character secretKey is defined crypto.js, salt & pepper is defined in app.js
  • The .json database file is defined by userData in app.js (Created on first sign-up)
  • node app.js
  • Visit http://localhost:3000 in the browser.

userregistration-demo's People

Contributors

sondregronas avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.