Code Monkey home page Code Monkey logo

social_security's Introduction

Social Security Number

Image of Yaktocat

Social security number is the primary means of identification in United States of America. This is a simple program that generates Social security numbers for new babies and immigrants. The program starts by importing the social security number database, and then creating a tuple of the social security number hashes. I stored the numbers in hash format to save the user if the database ever gets breached. Then a random social security number is created and then assigned. Before assigning the number, the program checks to ensure that the number doesn't exist in the database.

This system hashes the database and then saves the value of the hash on different file. If the database is tampered with or the file that stores the hash value of the database is tampered with, the system is able to detect this, informs the user and then shuts down. The user of this code can modify it to suit their purpose.

Code Review

This code have been reviewed by CodeFactor.io and was found to contain 0 bugs

Limitations

  1. The hashing algorithm is not salted, it can be broken with dictionary attack
  2. For someone to implement this code in real world, they will have to modify it to include a salt

social_security's People

Contributors

francisobiagwu avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

mfshroomfairy

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.