Quantcast
Channel: Proxmox Support Forum
Viewing all articles
Browse latest Browse all 173819

Get Fingerprint of Proxmox Backup Encryption Key in python

$
0
0
I wanted to calculate the fingerprint of the encrypton key in python, thats what works for me:

Code:
import base64
import hashlib
import hmac
import json
import sys

def get_fingerprint(encryptionkey):
        b = base64.b64decode(encryptionkey)
        id_key = hashlib.pbkdf2_hmac('sha256', b, b'_id_key', 10)
        prefix = hashlib.sha256(b"Proxmox Backup Encryption Key Fingerprint").digest()
        h = hashlib.sha256(prefix + id_key).hexdigest()
        return ':'.join(h[i:i+2] for i in...

Read more

Viewing all articles
Browse latest Browse all 173819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>