2014-03-30 | Paul Boddie | raw annotate files changeset graph | Added a simple timestamping script for messages before any eventual signing. |
1 #!/usr/bin/env python 2 3 from MoinMessage import GPG, Message 4 import sys 5 6 if __name__ == "__main__": 7 keyid = sys.argv[1] 8 9 gpg = GPG() 10 key = gpg.exportKey(keyid) 11 key["Update-Action"] = "store" 12 13 message = Message() 14 message.add_update(key) 15 16 # Show the resulting text. 17 18 text = message.get_payload() 19 print text 20 21 # vim: tabstop=4 expandtab shiftwidth=4