def decrypt_wifi_blob(self, key_material): """ Decrypt wifi password """ if self.smkp: blob = DPAPIBlob(key_material.decode('hex')) ok, msg = blob.decrypt_encrypted_blob(mkp=self.smkp) return manage_response(ok, msg)
def decrypt_encrypted_blob(self, ciphered, entropy_hex=False): """ Decrypt encrypted blob """ if self.umkp: blob = DPAPIBlob(ciphered) ok, msg = blob.decrypt_encrypted_blob(mkp=self.umkp, entropy_hex=entropy_hex) return manage_response(ok, msg)
def decrypt_blob(self, dpapi_blob): """ Decrypt DPAPI Blob """ if self.umkp: blob = DPAPIBlob(dpapi_blob) ok, msg = blob.decrypt_encrypted_blob(mkp=self.umkp) return manage_response(ok, msg)
def decrypt_wifi_blob(self, key_material): """ Decrypt wifi password """ if self.smkp: blob = DPAPIBlob(codecs.decode(key_material, 'hex')) ok, msg = blob.decrypt_encrypted_blob(mkp=self.smkp) return manage_response(ok, msg)