Last active
December 15, 2015 02:29
-
-
Save pixie79/5187142 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
startup | |
__init__.py | |
mount | |
__init__.py | |
mount.py | |
passwd | |
__init__.py | |
getpasswd.py | |
###### | |
#mount.py | |
#!/usr/bin/env python | |
import subprocess, getpass, string | |
if __name__ == "__main__" and __package__ is None: | |
__package__ = "startup.mount" | |
from ..passwd.getpasswd import GeneratePasswordBase64 | |
def PrintPassword(p): | |
securePass = GeneratePasswordBase64(p,n) | |
print securepass | |
def GetPassword(): | |
return 'test' | |
def GetDirectory(): | |
return '/tmp' | |
if __name__ == "__main__": | |
p = GetPassword() | |
e = GetDirectory('Enter encrypted directory: ') | |
u = GetDirectory('Enter unencrypted directroy: ') | |
PrintPassword(p) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment