Logo Search packages:      
Sourcecode: nagstamon version File versions  Download package

def Nagstamon::nagstamonConfig::Config::Obfuscate (   self,
  string,
  count = 5 
)

    Obfuscate a given string to store passwords etc.

Definition at line 251 of file nagstamonConfig.py.

00251                                         :
        """
            Obfuscate a given string to store passwords etc.
        """
        for i in range(count):
            string = list(base64.b64encode(string))
            string.reverse()
            string = "".join(string)
            string = zlib.compress(string)
        string = base64.b64encode(string)
        return string


    def DeObfuscate(self, string, count=5):


Generated by  Doxygen 1.6.0   Back to index