From: Laurian G. <la...@gm...> - 2004-09-22 13:05:38
|
On Wed, 22 Sep 2004 14:01:03 +0200, Stefano Campanini <cam...@ya...> wrote: > Laurian Gridinoc wrote: > > >I always thought at this sha1 result as an URI, I would use the > >already used format of identification of resources by sha1 content sum > >used in P2P software: > > > >urn:sha1:XSQCZ3UK3PPW6Y6HOVLTIX2QFMZ3TFFB > >----------------^ base32 of sha1 sum of the content - in our case of > >the n-triple > > > >I using for base32: com.bitzi.util.Base32: > >URI urn = new URI("urn", "sha1:" + Base32.encode(sha1digest), null); > > > >You proposed base64, I would go for base32, theoretically we would be > >able to identify (in the future) individual RDF statements over P2P > >networks :) > > > > > Hi Laurian, > > Where I can find an up-to-date copy of the com.bitzi.util.Base32 class ? > I found it, but in the context of other projects. I'd like to get the > original source. > It is better to find a LGPL o more free licensed code. In this manner, > in the future, we can change to" a more free open source" Platypus license. > > Thanks in advance. > Stefano > It is in public domain, I'm digging now for the original... http://bitzi.com/developer/code The javacode is derrived from bitcollider which is in public domain: http://sourceforge.net/projects/bitcollider and you have the java version in CVS http://cvs.sourceforge.net/viewcvs.py/bitcollider/jbitprint/src/com/bitzi/util/Base32.java?rev=1.1&view=auto labeled public domain Cheers, -- Laurian Gridinoc Chief Developer GRAPEFRUIT DESIGN www.gd.ro |