/home/drscream

  • home
  • blog
  • gallery
  • studies
  • about
  • gpg photo-viewer, jpeg2ascii

    Ich glaube das braucht in Wirklichkeit niemand, aber irgendwie ist es ja doch toll. GPG bietet die Moeglichkeit an seinen Key ein Foto anzuhaengen, jedoch kann man dies schwer sehen wenn man nur Terminal Programme verwendet.

    Aber zum Glueck gibt es ja kleine tolle Programme die JPEG Bilder in ASCII Art umwandeln, z.B. jp2a. Hierzu traegt man nun einfach in seiner ~/.gnupg/gpg.conf folgende Zeile ein und schon kann man die tollen JPEG ASCII Fotos der GPG Benutzer sehen:

    photo-viewer "jp2a %i"

    Und so koennte das dann z.B. aussehen:

                                   ...
                            ...',.',,'............
                            .,''..'.......',...''''....
                          .','..........'.'...'...''','.
                         .,::;,,,''......'................
                      .';codxkkxddlc;'.....''..............
                     .;okkOO00Okkxddoolcclc:;,,''...........
                    .lkkkkOOkkxxxxxxxkkkkkkxdolc:;'''.''''';;'..
                   ;xkkkkkkkxxxxxxxxddddddxxkkxdoc:,,',,''',;;:;.
                 .lkkkkkkkkxxxxxxdddoolllloooooolc:;,''..'''','',.
                .dkkkkkkkkxxxxxxdddolllllllllllllc:;,'..............
               .dkkkkkkkkxxxxxxdddoollllllcccccccc:;,..........  ....
              .okxxxxxxxxxxxxdddoollllllccc:::::::;,'....     .......
             .cddxdxxxxxxxddddoollllllllcc:::;;;;;,'....  ... .... ..
            .,,,,;:lodddoolcccc:cccclllcc::;;;;;;,,.....   ...  .. ..
       .    .:c:;,',codol:;,'.....'',;;;;;;;,,,,,,,'....     .. .....
       ..  ..,'';:;.;ool;''''',,,;;,''''''',,,,,,,,'....    .........
       ..   .;,,;l;.:dl,.......',,;,',,',..'',,,,,,'....        .....
       .....:occcc:lxdc,...'''''',,'.'.'''.'''''..........     .....
          .ldddodxkxlc;;;,;::ccc::;,,;,'',,,,,,,,,'...       .   ...
         .cxxxxxxxolc:;;;;:cllllllccc:;;;;;;;,,,,,'.........',,,..
         :dxdddoolc:;,;;;;cloooollllc::::;;;,,,,,,'......'...'..,.
        'oddoo:;,'....;;;';lodooollcc:::;;;,,,,,,''...'''...','.,.
        ,olllol:;'.....'..,:loooolcc:::;;;,,,,'''''..''''...','.,.
        ,lcclooll::c:;,,,;:ccclllc:::;;,,,,,''''''..''''....';''.
        'lc:coooollolc::;:::cc::c::;;,,,,,'''''''...'''...',,,.
        .llccc,,,;,,,,,;;;;;;;;;::;;,,,,'''''''''''''''',,,'..
         cooolccc::;;,'......',:lc;;,,''''''''''''''''',,,...
         ,doooc::::c:;;;;;;;;:lll:;,'''',,''''''''''...''.  .
         .cdllc;;,,;;,,;;;::ccll:;,''''''''..........'''.  ..
          .:oolllccc:::::ccccc:;;,'''''............'''',.  .
           'oooooooollcllcc::;,,''''...............''',,.
           .cooolllllllc:;;;,'''.................'''',,'.
            ':c::::::;,''''....................'''',,,,.
             .,,,''''.........................''''',,,,.
              ...''....  ...................'''''',,,,.  .
             ..  :lc;'......................'''',,,'..   .
          .....  ;lllc;'..................'''''''...
      ....'....  ,cllcc:;,''.............'''........       ..
    ...........  .:lllc::;;;;,'''.........'........        .....
    ...........  .,:clcc:;;;;,''......'''''''......        . .......
    ...........   .;:cccc::;,,'....''',,,,,'.....            ........
    ....... ...    .;:ccccc::;,,,,,,,,,,,,''....           ......  ..
    .. .... .      .';:cccc::;;,,,,,;;;,,,'... .           ..  ..
    

    Posted

    July 25, 2009

    Tags

    ascii, gpg, pgp, photo-viewer

  • Revoking a GPG key

    Now after long time, I would like to revoke my old gpg key (0x732BE57D). I found the documentation on this a little sparse, so here are the steps I took.

     gpg --gen-revoke 0x732BE57D

    0x732BE57D is the ID for my key. You’re asked if you want to provide a reason for the revocation (key comprised, superseded or no longer used) and an optional free-text description. After supplying your passphrase, an ascii-armoured key block is printed out. Paste this text into a file.

    -----BEGIN PGP PUBLIC KEY BLOCK-----
    Version: GnuPG v2.0.9 (GNU/Linux)
    Comment: A revocation certificate should follow
    
    QCfaMzd5Aj8iGEEIBECACEFAklx2aMaHQFyZXBsYWNlZCB3aXR
    RK8LcYHjvuGqHrZvKoAnRwycNdRFRHFZEg5YLgVpNWi/S9HQ
    =xQFS
    -----END PGP PUBLIC KEY BLOCK-----

    This step could be performed when you first generate your key, and the results stashed in a safe place for later use if you lose it.

    gpg --import 0x732BE57D_revoke_cert.asc

    Issuing this command imports the revocation into your keyring, revoking your key.

    gpg --keyserver pgp.mit.edu --send-keys 0x732BE57D

    This send the revoked key to the public keyserver at pgp.mit.edu. If it succeeds, you’ll get the message ‘gpg: success sending to `pgp.mit.edu’ (status=200)‘. If you check your key’s verbose index page on pgp.mit.edu, you’ll see *** KEY REVOKED *** on the first line of the details.

    Only for your information, my current (since 2007) gpg key is 0xE80BF2AB.

    Posted

    January 17, 2009

    Tags

    gpg, pgp, revoke