Code Monkey home page Code Monkey logo

meanbrew's People

Contributors

cepster avatar justinrassier avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

meanbrew's Issues

Use better password for Express session secret

In the express config, when setting up sessions, it requires a password. When getting things up and going, we just used a weak string. We should secure this better so that sessions are secure.

Don't send up full User model from DB

Right now the full user is sent up to the client side from Mongo DB. This contains the hashed password as well, which is wasteful and just stupid to do.

Create a view-model or some other projection to send only required data up to the client.

Change password hashing algorithm

Right now passwords are hashed with SHA-1. According to wikipedia (http://en.wikipedia.org/wiki/SHA-1) SHA-1 really isn't fit for modern day use and contains a theoretical attack. Since the crypto library for node handles other algorithms, we should just start off using one of them instead.

I propose SHA-256 or SHA-512 as both have had no known collisions and no known attacks.

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.