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)
def generate_random(self): return sha1(ipautil.ipa_generate_password()).hexdigest()
def gen_password(self): return sha1(ipautil.ipa_generate_password()).hexdigest()