A secure and flexible password generation and validation utility for TypeScript/JavaScript applications