unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Amirouche Boubekki <amirouche@hypermove.net>
To: "pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de>
Cc: guile-user@gnu.org,
	guile-user <guile-user-bounces+amirouche=hypermove.net@gnu.org>
Subject: Re: UUID3 implementation for Guile
Date: Tue, 09 Jan 2018 11:00:26 +0100	[thread overview]
Message-ID: <2a9cacddebb25ab38af93be00e76fe69@hypermove.net> (raw)
In-Reply-To: <20180108145801.zljsglp4fhve2djn@floriannotebook>

Le 2018-01-08 15:58, pelzflorian (Florian Pelz) a écrit :
> Hello,
> 
> I need to generate a unique deterministic ID for Haunt and other Web
> stuff.  Therefore I implemented UUID version 3 and MD5 by myself.  But
> I wonder:
> 
> * Why is UUID3 support not in Guile proper?  Does it belong there?
>   Should I submit a patch?

It definitly has a place in Guile, if it's not already provided by
another GNU project like libgcrypt or gnutls. You need to patch
branch-2.2 with your code, tests and documentation and send the
patch to guile-devel@gnu.org.

> * Is there already a better implementation out there?  Apparently
>   there is an implementation in Gauche Scheme.  I also find this.
> 
>   https://github.com/marcomaggi/industria/tree/master/weinholt

The official repository for industria is the following:

   https://github.com/weinholt/industria/

I use some of those in my web projects, including argon2

   
https://github.com/a-guile-mind/culturia.one/blob/master/src/argon2.scm

I think you'd better avoid both md5 and sha1 because there
are attacks against them.

>   Here the Guile list talked about using gcrypt from Guile.
> 
>   https://lists.gnu.org/archive/html/guile-devel/2013-02/msg00009.html
> 

I think it's better to rely on libgcrypt and gnutls. I don't
do that myself, yet, because industria is the easy solution.

The problem with industria is that we are not sure it's used
by people and that the cryptography is correct. Whereas libgcrypt
and gnutls have a much wider audience with less chances of bugs
and compromissions.

Can you explain how do you use md5 and uuid3 with haunt?

FWIW I would prefer to use something base62, instead of exposing
a md5 hash directly.



  parent reply	other threads:[~2018-01-09 10:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-08 14:58 UUID3 implementation for Guile pelzflorian (Florian Pelz)
2018-01-08 15:47 ` pelzflorian (Florian Pelz)
2018-01-09 10:00 ` Amirouche Boubekki [this message]
2018-01-09 13:29   ` pelzflorian (Florian Pelz)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2a9cacddebb25ab38af93be00e76fe69@hypermove.net \
    --to=amirouche@hypermove.net \
    --cc=guile-user-bounces+amirouche=hypermove.net@gnu.org \
    --cc=guile-user@gnu.org \
    --cc=pelzflorian@pelzflorian.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).