(self, secret)
return True
True if the given `secret` is a valid btsync secret string. A
        valid secret is a 160 bit base32 encoded string with an 'A' or 'B'
        prepended.
True if the given `secret` is a valid btsync secret string. A
        valid secret is a 160 bit base32 encoded string with an 'A' or 'B'
        prepended.
True if the given secret is a valid btsync secret string . A valid secret is a 160 bit base32 encoded string with an A or B prepended .
def is_valid_secret(self, secret):
        """ True if the given `secret` is a valid btsync secret string. A
        valid secret is a 160 bit base32 encoded string with an 'A' or 'B'
        prepended.

        """
        if not (secret.startswith('A') or secret.startswith('B')):
            return False
        if len(secret) != 33:
            return False
        if not secret.isupper():
            return False
        # ensure only legal chars as defined by RFC 4648
        for char in ('1', '8', '9', '='):
            if char in secret:
                return False
        return True
def is_valid_secret ( self , secret ) : if not ( secret . startswith ( 'A' ) or secret . startswith ( 'B' ) ) : return False if len ( secret ) != 33 : return False if not secret . isupper ( ) : return False # ensure only legal chars as defined by RFC 4648 for char in ( '1' , '8' , '9' , '=' ) : if char in secret : return False return True