コード例 #1
0
 def testBadPassword(self):
   self.assertFalse(truecrypt.mount(test_file, 'bad_pass', test_mount))
   self.assertFalse(os.path.exists(test_clearfile))
コード例 #2
0
ファイル: bruteforce.py プロジェクト: mote/truecrypt-wrapper
def try_candidate(passwd):
  #print 'trying: ', passwd
  if truecrypt.mount(TARGET_FILE, passwd, MOUNT_PT):
    print '******Found! ', passwd
    return True
  return False
コード例 #3
0
 def testCorrect(self):
   self.assertTrue(truecrypt.mount(test_file, test_pwd, test_mount))
   self.assertTrue(os.path.exists(test_clearfile))