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hpCi0tLS0tRU5EIFBVQkxJQyBLRVktLS0tLQo="

# Декодирование строки
decoded_bytes = base64.b64decode(encoded_string)
print(decoded_bytes)


decoded_string = decoded_bytes.decode("utf-8")

# Вывод результата
print(decoded_string)

f = open("dhpubB.pem", "w")
f.write(decoded_string)
f.close()
