ERLEDIGT
JA
JA
ANTWORTEN
0
0
ZUGRIFFE
1375
1375
EMPFEHLEN
-
Hey Leute, ich will ein kleines Python Skript schreiben, welches einen Text nimmt eine digitale Signatur dranhängt und diese dann weiterleitet. Des weiterleiten ist kein Problem aber ich habe enorme Probleme eine digitale Signatur zu erstellen. Ich hab schon mehrere Pythonbibliotheken angeschaut und z.B. mit pyme auch schon etwas gebastelt
Code :1 2 3 4 5 6 7 8 9 10 11 12 13 14
import pyme.core as pc import pyme.pygpgme as pp plain = pc.Data('this is a test message') cipher = pc.Data() ctx = pc.Context() ctx.set_armor(1) name = 'me@office.com' ctx.op_keylist_start(name,0) key = ctx.op_keylist_next() ctx.op_sign(plain,cipher, pp.GPGME_SIG_MODE_DETACH) cipher.seek(0,0) print plain.read() print cipher.read()
Des Problem ist er gibt mir nichts aus, nun wollte ich Fragen ob schon jemand anders so etwas realisiert hat, meinetwegen auch mit einer anderen Bibliothek , das ist das ergebnis wo ich hinwill:
Code :1 2 3 4 5 6 7 8 9 10 11 12 13
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 this is a test message -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Weitere Infos: siehe http://www.gnupg.org iD8DBQE98JUp3cgYmKmkyoYRAmhaAKCNi8C4nJeWSdoye4B1Cs1iuxpdoA CZASa9 /stKyMXPB/4/kRIzhmdKq/8= =o/KA -----END PGP SIGNATURE-----
Ich hoffe mir kann einer helfen, danke schonmal
Cu Oetzicool
Ähnliche Themen
-
[Python] Script ( .py ) aus Python Kommandozeile (python.exe) heraus öffnen
Von Hookah im Forum CGI, Perl, Python, Ruby, Power ShellAntworten: 0Letzter Beitrag: 16.12.09, 10:59 -
Python Programmier bzw. Python Entwicklerteam gesucht
Von ppzi im Forum Stellenangebote (entgeltlich)Antworten: 0Letzter Beitrag: 29.07.08, 11:00 -
Python?
Von Keine_Ahnung im Forum Coders TalkAntworten: 13Letzter Beitrag: 26.06.07, 04:07 -
[Python] Video tutorial zu dem Python Webframework TurboGears (20 Min )
Von Thomas Darimont im Forum CGI, Perl, Python, Ruby, Power ShellAntworten: 0Letzter Beitrag: 07.12.06, 13:28 -
Python
Von Tuco im Forum Sonstige SprachenAntworten: 3Letzter Beitrag: 04.08.04, 09:45





Zitieren
Login





