Questions tagged [pyme]

4 questions
2
votes
1 answer

What is the best way to encrypt stored data in web2py?

I need to encrypt data stored in web2py, more precisely passwords. This is not about authentication, but more something in the line of a KeePass-like application. I've seen that is included in web2py, but and M2Secret could easily do that. With…
Cyann
  • 23
  • 3
0
votes
2 answers

Problem decrypting PGP in python with pyme without user interaction

I am trying to decrypt messages using pyme (a python wrapper from gpgme). It works fine if I type in the password when it prompts but I cannot get the passphrase callback to work. Here is the code import pyme.core def Callback( x, y, z ): print…
user19745
  • 3,499
  • 8
  • 25
  • 21
0
votes
1 answer

how do I sign data with pyme?

I just installed pyme on my ubuntu system. it was easy (thanks apt-get) and I can reproduce the example code (encrypting using a public key in my keyring). now I would like to sign some data and I didn't manage to find any example code nor much…
mariotomo
  • 9,438
  • 8
  • 47
  • 66
0
votes
2 answers

Python Pyme: Simple decryption without user interaction

I am using Pyme to interface with GPGME and have had no problems signing / encrypting. When I try to decrypt, however, it always brings up the prompt for the passphrase despite having set it via a c.set_passphrase_cb callback. Am I doing something…
sberry
  • 128,281
  • 18
  • 138
  • 165