Beispiel #1
0
 def fingerprint_dns_sha1(self):
     if self._keytype == 'ssh-rsa':
         keytype = 1
     elif self._keytype == 'ssh-dss':
         keytype = 2
     else:
         return
     fp = sha1(self._key).hexdigest().upper()
     return u'%d 1 %s' % (keytype, fp)
Beispiel #2
0
 def fingerprint_dns_sha1(self):
     if self._keytype == 'ssh-rsa':
         keytype = 1
     elif self._keytype == 'ssh-dss':
         keytype = 2
     else:
         return
     fp = sha1(self._key).hexdigest().upper()
     return u'%d 1 %s' % (keytype, fp)
Beispiel #3
0
 def generate_random(self):
     return sha1(ipautil.ipa_generate_password()).hexdigest()
Beispiel #4
0
 def gen_password(self):
     return sha1(ipautil.ipa_generate_password()).hexdigest()