GithubHelp home page GithubHelp logo

alexanderkjall / scram Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ongres/scram

0.0 3.0 0.0 174 KB

Salted Challenge Response Authentication Mechanism (SCRAM) - Java Implementation

License: BSD 2-Clause "Simplified" License

Java 100.00%

scram's Introduction

SCRAM Java Implementation

Build Status

Overview

SCRAM (Salted Challenge Response Authentication Mechanism) is part of the family of Simple Authentication and Security Layer (SASL, RFC 4422) authentication mechanisms.

It is described as part of RFC 5802 and RFC7677.

This project will serve for the basis of PostgreSQL's JDBC driver SCRAM support (coming in PostgreSQL 10).

The code is licensed under the BSD "Simplified 2 Clause" license (see LICENSE).

Goals

This project aims to provide a complete clean-room implementation of SCRAM. It is written in Java and provided in a modular, re-usable way, independent of other software or programs.

Current functionality includes:

  • Common infrastructure for building both client and server SCRAM implementations.
  • A Client API for using SCRAM as a client.
  • Support for both SHA-1 and SHA-256.
  • Basic support for channel binding.
  • No runtime external dependencies.
  • Well tested (+75 tests).

Current limitations:

  • SASLPrep is not implemented yet.
  • Server API and integration tests will be added soon.

How to use the client API

Please read Client's README.md.

Javadoc: Javadocs

Common API

'common' is the module that contains code common to both client and server SCRAM projects. If you with to develop either a client or server API, you may very well build on top of this API. Import maven dependency:

<dependency>
    <groupId>com.ongres.scram</groupId>
    <artifactId>common</artifactId>
</dependency>

and check the Javadoc: Javadocs

Contributing

Please submit Push Requests for code contributions. Make sure to compile with mvn -Psafer before submitting a PR.

Releases (on the master branch only) must be verified with:

mvn -Psafer -Pmaster-branch

scram's People

Contributors

ahachete avatar

Watchers

Alexander Kjäll avatar James Cloos avatar  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.