Git Product home page Git Product logo

argon2's Introduction

Argon2 Build Status

A multi-arch library implementing the Argon2 password hashing algorithm.

This project is based on the original source code by the Argon2 authors. The goal of this project is to provide efficient Argon2 implementations for various HW architectures (x86, SSE, ARM, PowerPC, ...).

For the x86_64 architecture, the library implements a simple CPU dispatch which automatically selects the best implementation based on CPU flags and quick benchmarks.

Building

Using GNU autotools

To prepare the build environment, run:

autoreconf -i
./configure

After that, just run make to build the library.

Running tests

After configuring the build environment, run make check to run the tests.

Architecture options

You can specify the target architecture by passing the --host=... flag to ./configure.

Supported architectures:

  • x86_64 – 64-bit x86 architecture
  • generic – use generic C impementation

Using CMake

To prepare the build environment, run:

cmake -DCMAKE_BUILD_TYPE=Release .

Then you can run make to build the library.

Using QMake/Qt Creator

A QMake project is also available in the qmake directory. You can open it in the Qt Creator IDE or build it from terminal:

cd qmake
# see table below for the list of possible ARCH and CONFIG values
qmake ARCH=... CONFIG+=...
make

Architecture options

For QMake builds you can configure support for different architectures. Use the ARCH variable to choose the architecture and the CONFIG variable to set additional options.

Supported architectures:

  • x86_64 – 64-bit x86 architecture
    • QMake config flags:
      • USE_SSE2 – use SSE2 instructions
      • USE_SSSE3 – use SSSE3 instructions
      • USE_XOP – use XOP instructions
      • USE_AVX2 – use AVX2 instructions
      • USE_AVX512F – use AVX-512F instructions
  • generic – use generic C impementation

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.