Coder Social home page Coder Social logo

image-hash's Introduction

fingerprint-generator-cpp

Generates an image based on an input string.

When you ssh onto a host, especially if from a new computer, you often get complaints that the host's public key has changed. Most of the time, this is for legitimate reasons, and a user will mindlessly type yes. This makes most people vulnerable to MITM attacks, exposing plaintext passwords. In addition, humans are provably bad at 2 things:

  1. Remember secure passwords
  2. Compare meaningless or random strings Meaning that even if a public key were to change when it wasn't supposed to, signifying an MITM attack, most users wouldn't notice. Attaching an image could help defend against this by leveraging human's ability to recognize shapes and colors to minimize the risk of accepting an ssh session that is victim to an MITM.

Other use cases include displaying a visual representation of a (browser fingerprint)[https://coveryourtracks.eff.org/static/browser-uniqueness.pdf], which can streamline the process of making sure your browser is not identifiable by a server.

To compile, follow these steps

cd
git clone https://github.com/qknight/libnoise.git
cd libnoise
mkdir build
cd build
cmake ..
make
sudo make install
cd ~/image-hash
g++ main.cpp -o image-hash -lnoise

Generates a picture using libnoise in the following configuration

The diagram below formats correctly when cloned or when looking at the raw data representation of this file

┌──────────┐ ┌──────────┐ │ │ │ │ │ Generator├───► Modifier ├─┐ │ │ │ │ │ ┌──────────┐ ┌──────────┐ └──────────┘ └──────────┘ │ │ │ │ │ ├───► Combiner ├───► Modifier ├──┐ ┌──────────┐ ┌──────────┐ │ │ │ │ │ │ │ │ │ │ │ └──────────┘ └──────────┘ │ │ Generator├───► Modifier ├─┘ │ │ │ │ │ │ ┌──────────┐ ┌──────────┐ ┌──────────┐ └──────────┘ └──────────┘ │ │ │ │ │ │ │ ├────► Combiner ├──► Modifier ├──► Output │ ┌──────────┐ ┌──────────┐ │ │ │ │ │ │ │ │ │ │ │ │ └──────────┘ └──────────┘ └──────────┘ │ Generator├───► Modifier ├─┐ │ │ │ │ │ │ ┌──────────┐ ┌──────────┐ │ └──────────┘ └──────────┘ │ │ │ │ │ │ ├───► Combiner ├───► Modifier ├──┘ ┌──────────┐ ┌──────────┐ │ │ │ │ │ │ │ │ │ │ └──────────┘ └──────────┘ │ Generator├───► Modifier ├─┘ │ │ │ │ └──────────┘ └──────────┘

Number of classes per module type:

  • Generator: 9/9 classes
  • Combiner: 4/4 classes
  • Transformer: 4/5 classes
  • Modifier: 6/7 classes

Possible to-do

Probably could make a recursive function for the generators

image-hash's People

Contributors

jake-mullins 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.