ghoseb / crypto-password

Library for securely hashing passwords

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

crypto-password

Build Status

A Clojure library for securing user passwords using a key derivation function. Supports the following algorithms:

Installation

Add the following dependency to your project.clj file:

[crypto-password "0.1.1"]

Usage

Pick an encryption algorithm, either pbkdf2, bcrypt or scrypt:

(require '[crypto.password.<algorithm> :as password])

Then use the encrypt function to apply a secure, one-way encryption algorithm to a password:

(def encrypted (password/encrypt "foobar"))

And the check function to check the encrypted password against a plaintext password:

(password/check "foobar" encrypted) ;; => true

Documentation

License

Copyright © 2013 James Reeves

Distributed under the Eclipse Public License, the same as Clojure.

About

Library for securely hashing passwords


Languages

Language:Clojure 100.0%