Coder Social home page Coder Social logo

fphc's Introduction

FPHC

Combines the SHA3-512 hashes of a file(s) and a password by the user multi-threaded. Primarily written to thwart Evil Maid attacks on boot from Initramfs.

How is this supposed to prevent an Evil Maid attack?

The intended use is the following:

  • create a key from all the unencrypted files and a user specified password
  • enroll this key in a LUKS partition
  • during boot, use a hook (W.I.P.) to perform step 1. and create a keyfile to unlock the partition from step 2

If any files change, the resulting key will be invalid If none of the files have changed, but a bad password was supplied, the key will be invalid If none of the files have changed and a valid password was supplied, the key will be valid

How to build:

At least Zig master (0.12.0-dev.706+62a0fbdae) is required

  1. Clone the repo: git clone https://github.com/spflaumer/fphc.git
  2. Change directory into the repo: cd fphc
  3. Initialize submodules: git submodule update --init --recursive
  4. Run the build command: zig build
  5. The output file will be within zig-out/bin

Things that need fixing:

  • password is echoed onto the terminal
  • only files can be currently supplied for hashing. implement hashing of directories
  • probably make a switch to a thread pool, rather than creating separate threads

fphc's People

Contributors

spflaumer 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.