<commit_before># Burn After Reading

A tiny script to generate a printable HTML page (with QR codes) to back up
your TOTP secrets,
[SSSS](https://en.wikipedia.org/wiki/Shamir%27s_Secret_Sharing) passphrase
shards, etc.

## Usage

    bundle install
    echo 'foo: 12345678901234567890' | gpg --encrypt > my-secrets.yml.gpg
    bundle exec ./burn-after-reading my-secrets.yml.gpg
    open my-secrets.html

## Running Tests

    bundle exec rake test
<commit_msg>Fix gpg instructions, offer choice of key-pair or symmetric<commit_after># Burn After Reading

A tiny script to generate a printable HTML page (with QR codes) to back up
your TOTP secrets,
[SSSS](https://en.wikipedia.org/wiki/Shamir%27s_Secret_Sharing) passphrase
shards, etc.

## Usage

    bundle install

    # There are two options for encrypting the YAML data, choose one...
    # 1. Recommended: a private key in your keyring
    echo 'foo: 12345678901234567890' | gpg --encrypt --recipient USER_ID > my-secrets.yml.gpg
    # 2. Symmetric encryption with only a passphrase
    gpg -o my-secrets.yml.gpg --symmetric <(echo 'foo: 12345678901234567890')

    bundle exec ./burn-after-reading my-secrets.yml.gpg
    open my-secrets.html

## Running Tests

    bundle exec rake test

{'fraction_non_alphanumeric': 0.09156626506024096, 'fraction_numerical': 0.05301204819277108, 'mean_word_length': 3.5641025641025643, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1132110', 'n_tokens_mistral': 478, 'n_tokens_neox': 402, 'n_words': 137}