public String getFingerPrint(JSch jsch) { HASH hash = null; try{ //hash=(HASH)Activator.CreateInstance(Type.GetType(jsch.getConfig("md5"))); hash = new Tamir.SharpSsh.jsch.jce.MD5(); } catch (Exception e) { Console.Error.WriteLine("getFingerPrint: " + e); } return(Util.getFingerPrint(hash, key)); }
public String getFingerPrint() { HASH hash = null; try { hash = new Tamir.SharpSsh.jsch.jce.MD5(); } catch (Exception e) { Console.Error.WriteLine("getFingerPrint: " + e); } return(Util.getFingerPrint(hash, getHostKey())); }