Did I find the right examples for you? yes no

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)

        def passphrase_callback(v, prompt1='Enter passphrase:', 
                           prompt2='Verify passphrase:'):
    from getpass import getpass
    while 1:
        try:
            p1=getpass(prompt1)
            if v:
                p2=getpass(prompt2)
                if p1==p2:
                    break
            else:
                break
        except KeyboardInterrupt:
            return None
    return p1
        


src/m/2/M2Crypto-0.22.3/M2Crypto/callback.py   M2Crypto(Download)
warnings.warn('Use the util module instead', DeprecationWarning)
 
from util import genparam_callback, passphrase_callback
 

src/m/2/M2Crypto-HEAD/M2Crypto/callback.py   M2Crypto(Download)
warnings.warn('Use the util module instead', DeprecationWarning)
 
from util import genparam_callback, passphrase_callback