|
From: <pe...@us...> - 2004-01-09 16:34:44
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/store
In directory sc8-pr-cvs1:/tmp/cvs-serv28313/src/java/org/neuclear/store
Modified Files:
EncryptedFileStore.java
Log Message:
changed use of base36 encoding to base32 to ensure compatibility with other schemes.
Index: EncryptedFileStore.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/store/EncryptedFileStore.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** EncryptedFileStore.java 19 Dec 2003 18:03:35 -0000 1.18
--- EncryptedFileStore.java 9 Jan 2004 16:34:40 -0000 1.19
***************
*** 2,5 ****
--- 2,8 ----
* $Id$
* $Log$
+ * Revision 1.19 2004/01/09 16:34:40 pelle
+ * changed use of base36 encoding to base32 to ensure compatibility with other schemes.
+ *
* Revision 1.18 2003/12/19 18:03:35 pelle
* Revamped a lot of exception handling throughout the framework, it has been simplified in most places:
***************
*** 254,258 ****
protected final String getFileName(final String name) throws InvalidNamedObjectException {
final String deURLizedName = NSTools.normalizeNameURI(name);
! final byte[] hash = CryptoTools.formatAsBase36(CryptoTools.digest256(deURLizedName.getBytes())).getBytes();
//if (true) return new String(hash);
final int partlength = hash.length / 8;
--- 257,261 ----
protected final String getFileName(final String name) throws InvalidNamedObjectException {
final String deURLizedName = NSTools.normalizeNameURI(name);
! final byte[] hash = CryptoTools.encodeBase32(CryptoTools.digest256(deURLizedName.getBytes())).getBytes();
//if (true) return new String(hash);
final int partlength = hash.length / 8;
|