(sun.* is sun specific)

This commit is contained in:
jrandom
2005-10-24 09:45:00 +00:00
committed by zzz
parent ee9ac31c8b
commit ad59ab691b

View File

@@ -26,6 +26,7 @@ import com.sun.syndication.io.SyndFeedInput;
import com.sun.syndication.io.XmlReader;
import net.i2p.I2PAppContext;
import net.i2p.data.Base64;
import net.i2p.util.EepGet;
public class Sucker {
@@ -536,7 +537,7 @@ public class Sucker {
MessageDigest md = MessageDigest.getInstance("SHA");
md.update(s.getBytes());
byte[] buf = md.digest();
String ret = new sun.misc.BASE64Encoder().encode(buf);
String ret = Base64.encode(buf);
return ret;
} catch (NoSuchAlgorithmException ex) {
ex.printStackTrace();