Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 8bf652f4 authored by Michael Bestas's avatar Michael Bestas
Browse files

Revert "tools: getb64key - print the base64 version of a PEM public key file"

Reason for revert: This has been unused since lineage-16.0

This reverts commit 0a656b64.

Change-Id: Ib804efa52b1af444be1de68066be48c30ea4d22b
parent 1e320a94
Loading
Loading
Loading
Loading

build/tools/getb64key.py

deleted100755 → 0
+0 −18
Original line number Diff line number Diff line
#!/usr/bin/env python

from __future__ import print_function

import base64
import sys

pkFile = open(sys.argv[1], 'rb').readlines()
base64Key = ""
inCert = False
for line in pkFile:
    if line.startswith(b"-"):
        inCert = not inCert
        continue

    base64Key += line.strip()

print(base64.b16encode(base64.b64decode(base64Key)).lower())