Great idea!
But I would not limit the length check, if a single char is added by error the regex fails and you show the key.
I would use 'nsec1[a-z0-9]{16,}'.
PS: Why the final $? I don't use python, perhaps his regex engine has something special.
Great idea!
But I would not limit the length check, if a single char is added by error the regex fails and you show the key.
I would use 'nsec1[a-z0-9]{16,}'.
PS: Why the final $? I don't use python, perhaps his regex engine has something special.