(self,buf=None)
Create a header, read self from binary string if given
Create a header, read self from binary string if given
Create a header read self from binary string if given
def __init__(self,buf=None):
        'Create a header, read self from binary string if given'
        if buf:
            self.decode(buf)
        else:
            self.signature1, self.signature2 = self.signatures
            # defaults taken from a file generated with KeePassX 0.4.3 on default settings
            self.version = 0x30002
            self.flags = 3 # SHA2 hashing, AES encryption
            self.key_enc_rounds = 50000
            self.reset_random_fields()
def __init__ ( self , buf = None ) : if buf : self . decode ( buf ) else : self . signature1 , self . signature2 = self . signatures # defaults taken from a file generated with KeePassX 0.4.3 on default settings self . version = 0x30002 self . flags = 3 # SHA2 hashing, AES encryption self . key_enc_rounds = 50000 self . reset_random_fields ( )