Skip to content

Instantly share code, notes, and snippets.

@pixie79
Last active December 15, 2015 02:29
Show Gist options
  • Save pixie79/5187142 to your computer and use it in GitHub Desktop.
Save pixie79/5187142 to your computer and use it in GitHub Desktop.
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