Skip to content

A Clojure library designed to perform weak string encryption, based on 128-bit AES.

Notifications You must be signed in to change notification settings

tnoda/simple-crypto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-crypto

A Clojure library designed to perform weak encryption, based on 128-bit AES.

Dependency information

Leiningen dependency information:

[org.clojars.tnoda/simple-crypto "0.1.0"]

Usage

Example:

user=> (require '[org.clojars.tnoda.simple-crypto :as c])
nil

;;; The encrypt function expects a String value as its input
;;; and returns a byte array.
user=> (def password "abcdefghijklmnop")
#'user/password

user=> (c/encrypt "Hello, World" password)
#<byte[] [B@774b9b80>

;;; Encryption and decryption.
user=> (-> "Hello, World" (c/encrypt password) (c/decrypt password))
"Hello, World"

License

Copyright (c) 2012 Takahiro Noda

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

About

A Clojure library designed to perform weak string encryption, based on 128-bit AES.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published