Skip to content
This repository has been archived by the owner on Mar 2, 2020. It is now read-only.
/ gcrypt-guile Public archive

guile gcrypt wrappers

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING
Notifications You must be signed in to change notification settings

fbs/gcrypt-guile

Repository files navigation

Guile-crypt

Wrappers to get some libgcrypt functionality into guile.

Disclaimer

I wrote this because I needed some crypto stuff for crypto-class. I am not a cryptography expert so don't expect this `library' to be secure.

Installing

Git-clone the repo and build.

 $ git clone [email protected]:fbs/gcrypt-guile.git
 $ cd gcrypt-guile
 $ ./autogen.sh ; ./configure ; make ; sudo make install

Usage

(use-modules 
	(gcrypt hash)
	(gcrypt random)
	(rnrs bytevectors))

(randomize 10 WEAK_RANDOM)
(define hash (make-hash MD_MD5))
(update! hash "hello world")
(digest->hex-string (digest hash)) 
	=> "5eb63bbbe01eeed093cb22bb8f5acdc3"
(change-digest-algorithm hash MD_SHA1)
(digest->hex-string (digest hash))
	=> "2aae6c35c94fcfb415dbe95f408b9ce91ee846ed"

Dependencies

Guile (>2.0), Guile-tools & libgcrypt.

About

guile gcrypt wrappers

Resources

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING

Stars

Watchers

Forks

Packages

No packages published