6718eb8 sss_obfuscate: abort on ctrl+c

Authored and Committed by sgallagh 13 years ago
    sss_obfuscate: abort on ctrl+c
    
    There is a python bug (http://bugs.python.org/issue11236) where
    getpass.getpass() does not throw KeyboardInterrupt on ctrl+c. This
    workaround is the closest we can get: if we detect the control
    character in the string that we read, we'll cancel.
    
        
file modified
+12 -0