Skip to content

Instantly share code, notes, and snippets.

@svareille
svareille / screens.py
Created July 21, 2019 10:23
screens.py file of the kivyMD's kitchen_sink example using text markup
"""
Copyright (c) 2019 Ivanov Yuri
For suggestions and questions:
<[email protected]>
This file is distributed under the terms of the same license,
as the Kivy framework.
"""
@svareille
svareille / PGPparseprivate.py
Created March 12, 2022 10:37
Python script to display raw private PGP keys for importing in OnlyKey
#!/usr/bin/env python
"""
Parse the private keys out of OpenPGP keys (ed25519 or RSA).
It will display the raw subkeys. Only run this on a secure trusted system.
"""
import sys
import argparse
import fileinput
import getpass
@svareille
svareille / john_doe.asc
Created March 12, 2022 11:12
PGP key for testing purpose. The passphrase is 'a' (the single letter 'a').
-----BEGIN PGP PRIVATE KEY BLOCK-----
lQdGBGImQrQBEADpWShWjDs1sx9vV3fyOBNNiEsARc91owborztZ6Q6R78HCEcew
RsdpnEOZEXnil9sZlNXOScnNiMZDYtPWH1zDdE59JlM0PfAvrSjyvfT8ZhEY3S88
xLrGoX/sX7MPCJ0yPfrnjxwNdjHg2fJ2WK9t45p4zkr/InX3+EXa/i6Fur5tNCaT
KiSSZnPDLMrhGkEn07gUaSaOh763KaZpAkHyDiamEh3/uo5U109Ycwd3pUk/jWKu
6C7HgfBN8yqHJgcEdlm4e8fmbW+shLvNxr7iZiPafWsMPpV8FXcDzSSr+8FotvQQ
vm+CvYZwOl7i0X05SOWLlGjkY9UWMkdYBwXrawpfnEu3rfGwZHjRCuSeYfGWGyag
RH5APjOKB5YQv+Ttp7fJPVWhkFr70cCjmoxmOruuA4aElkpu0cVi1WbKDd/tj49l
fP36sAc/fsAYW8BiqoZXjVdPwvnL5Gf4d1SxkDY+qQ2eQgNPxDUXnAK4wku462fG