All Projects → GehirnInc → Crypt

GehirnInc / Crypt

Licence: bsd-2-clause
Pure Go crypt(3) Implementation

Programming Languages

go
31211 projects - #10 most used programming language

Labels

Projects that are alternatives of or similar to Crypt

Cicada
A bash-like Unix shell written in Rust
Stars: ✭ 807 (+1969.23%)
Mutual labels:  unix
Sortpem
➿ Sorting utility for PEM files
Stars: ✭ 11 (-71.79%)
Mutual labels:  unix
My Favorite Things
Moved to: https://gitlab.com/brennovich/my-favorite-things
Stars: ✭ 30 (-23.08%)
Mutual labels:  unix
Monitorix
Monitorix is a free, open source, lightweight system monitoring tool.
Stars: ✭ 817 (+1994.87%)
Mutual labels:  unix
Fotix
My very own UNIX clone, for education/self-amusement.
Stars: ✭ 8 (-79.49%)
Mutual labels:  unix
Goridge
High-performance PHP-to-Golang IPC bridge
Stars: ✭ 950 (+2335.9%)
Mutual labels:  unix
Ipt
Interactive Pipe To: The Node.js cli interactive workflow
Stars: ✭ 783 (+1907.69%)
Mutual labels:  unix
Posnk
An operating system project.
Stars: ✭ 34 (-12.82%)
Mutual labels:  unix
Cpp redis
C++11 Lightweight Redis client: async, thread-safe, no dependency, pipelining, multi-platform - NO LONGER MAINTAINED - Please check https://github.com/cpp-redis/cpp_redis
Stars: ✭ 855 (+2092.31%)
Mutual labels:  unix
Illumos Gate
An open-source Unix operating system
Stars: ✭ 952 (+2341.03%)
Mutual labels:  unix
The Unix Workbench
🏡 A Book for Anyone to Get Started with Unix
Stars: ✭ 919 (+2256.41%)
Mutual labels:  unix
Shellrb
A unix-like shell built in Ruby
Stars: ✭ 24 (-38.46%)
Mutual labels:  unix
Unitial
🖥 My rc / configs / dotfiles 📂
Stars: ✭ 29 (-25.64%)
Mutual labels:  unix
Rmate
Remote TextMate 2 implemented as shell script
Stars: ✭ 807 (+1969.23%)
Mutual labels:  unix
Awesome Unix
All the UNIX and UNIX-Like: Linux, BSD, macOS, Illumos, 9front, and more.
Stars: ✭ 973 (+2394.87%)
Mutual labels:  unix
Babushka
Test-driven sysadmin.
Stars: ✭ 794 (+1935.9%)
Mutual labels:  unix
Notes
📝 Simple delightful note taking, with more unix and less lock-in.
Stars: ✭ 939 (+2307.69%)
Mutual labels:  unix
Errand Boy
A memory-conscious alternative to os.fork() and subprocess.Popen().
Stars: ✭ 34 (-12.82%)
Mutual labels:  unix
Glfw
A multi-platform library for OpenGL, OpenGL ES, Vulkan, window and input
Stars: ✭ 8,416 (+21479.49%)
Mutual labels:  unix
Je
A distributed job execution engine for the execution of batch jobs, workflows, remediations and more.
Stars: ✭ 30 (-23.08%)
Mutual labels:  unix

.. image:: https://travis-ci.org/GehirnInc/crypt.svg?branch=master :target: https://travis-ci.org/GehirnInc/crypt

crypt - A password hashing library for Go

crypt provides pure golang implementations of UNIX's crypt(3).

The goal of crypt is to bring a library of many common and popular password hashing algorithms to Go and to provide a simple and consistent interface to each of them. As every hashing method is implemented in pure Go, this library should be as portable as Go itself.

All hashing methods come with a test suite which verifies their operation against itself as well as the output of other password hashing implementations to ensure compatibility with them.

I hope you find this library to be useful and easy to use!

Install

To install crypt, use the go get command.

.. code-block:: sh

go get github.com/GehirnInc/crypt

Usage

.. code-block:: go

package main

import (
	"fmt"

	"github.com/GehirnInc/crypt"
	_ "github.com/GehirnInc/crypt/sha256_crypt"
)

func main() {
	crypt := crypt.SHA256.New()
	ret, _ := crypt.Generate([]byte("secret"), []byte("$5$salt"))
	fmt.Println(ret)

	err := crypt.Verify(ret, []byte("secret"))
	fmt.Println(err)

	// Output:
	// $5$salt$kpa26zwgX83BPSR8d7w93OIXbFt/d3UOTZaAu5vsTM6
	// <nil>
}

Documentation

The documentation is available on GoDoc_.

.. _GoDoc: https://godoc.org/github.com/GehirnInc/crypt

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].