示例#1
0
        public String getFingerPrint(SshClient jsch)
        {
            IHASH hash = null;

            try {
                hash = (IHASH)Activator.CreateInstance(Type.GetType(jsch.getConfig("md5")));
            }
            catch (Exception e) {
                Console.Error.WriteLine("getFingerPrint: " + e);
            }
            return(StringAux.getFingerPrint(hash, key));
        }
示例#2
0
 public String getFingerPrint()
 {
     if (hash == null)
     {
         hash = genHash();
     }
     byte[] kblob = getPublicKeyBlob();
     if (kblob == null)
     {
         return(null);
     }
     return(getKeySize() + " " + StringAux.getFingerPrint(hash, kblob));
 }
示例#3
0
        public String getFingerPrint()
        {
            IHASH hash = null;

            try {
                Type t = Type.GetType(session.getConfig("md5"));
                hash = (IHASH)(Activator.CreateInstance(t));
            }
            catch (Exception e) {
                Console.Error.WriteLine("getFingerPrint: " + e);
            }
            return(StringAux.getFingerPrint(hash, getHostKey()));
        }