Hi, I got a running copy of Verlihub but wan't to use this great hub some times when I'm not running that one and the problem is that I have some passwords encrypted, and wonder if there are any way to use thos encrypted passwords in this hub, how should I need to rewrite the hub?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm not familiar with Verlihub's password encryption. However, assuming you can duplicate it (hopefully it is something common like MD5 or SHA1), you just need to add a function to the hub that encrypts the password (let's call it encryptpass), and modify parseMyPass:
Hi, I got a running copy of Verlihub but wan't to use this great hub some times when I'm not running that one and the problem is that I have some passwords encrypted, and wonder if there are any way to use thos encrypted passwords in this hub, how should I need to rewrite the hub?
I'm not familiar with Verlihub's password encryption. However, assuming you can duplicate it (hopefully it is something common like MD5 or SHA1), you just need to add a function to the hub that encrypts the password (let's call it encryptpass), and modify parseMyPass:
def parseMyPass(self, user, args):
password = encryptpass(args)
return (password, )
I'd recommend making a hub subclass that does this, see PrivateDCHub.py for an example.