X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fcore%2FLocalStorage.java;h=0ad4826e825f8c16ca34f4764de5d6e60f1b748b;hp=7c1d74792c4953a55325c35fa8bdd8ab043b9e1e;hb=0db31fc0dc88749cd8022790fd475df8b7b06c27;hpb=4daeeb4119b901d53b44913c86f8af3ce67db925 diff --git a/src/org/ibex/core/LocalStorage.java b/src/org/ibex/core/LocalStorage.java index 7c1d747..0ad4826 100644 --- a/src/org/ibex/core/LocalStorage.java +++ b/src/org/ibex/core/LocalStorage.java @@ -1,9 +1,12 @@ -// Copyright 2004 Adam Megacz, see the COPYING file for licensing [GPL] -package org.ibex; +// Copyright 2000-2005 the Contributors, as shown in the revision logs. +// Licensed under the GNU General Public License version 2 ("the License"). +// You may not use this file except in compliance with the License. + +package org.ibex.core; import java.io.*; import org.ibex.util.*; -import org.bouncycastle.util.encoders.Base64; +import org.ibex.crypto.*; /** Manages access to ~/.ibex */ public class LocalStorage { @@ -48,7 +51,7 @@ public class LocalStorage { public static java.io.File getCacheFileForKey(String key) { // FEATURE: be smarter here - return new java.io.File(cacheDir.getPath() + File.separatorChar + new String(Base64.encode(key.getBytes()))); + return new java.io.File(cacheDir.getPath() + File.separatorChar + new String(Encode.toBase64(key.getBytes()))); } }