Beispiel #1
0
        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));
        }
Beispiel #2
0
        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()));
        }