{"record":{"id":"826ec3376eb26904","repo":"phalcon/cphalcon","slug":"invalid-passphrase-too-weak","errorCode":null,"errorMessage":"Invalid passphrase (too weak)","messagePattern":"Invalid passphrase \\(too weak\\)","errorType":"exception","errorClass":"WeakPassphrase","httpStatus":null,"severity":"error","filePath":"phalcon/Encryption/Security/JWT/Builder.zep","lineNumber":400,"sourceCode":"            throw new InvalidNotBefore();\n        }\n\n        return this->setClaim(Enum::NOT_BEFORE, timestamp);\n    }\n\n    /**\n     * @param string $passphrase\n     *\n     * @return static\n     * @throws ValidatorException\n     */\n    public function setPassphrase( string passphrase) -> <static>\n    {\n        if !preg_match(\n            \"/^(?=.*[A-Z])(?=.*[a-z])(?=.*\\d)(?=.*[\\W_]).{16,}$/\",\n            passphrase\n        ) {\n            throw new WeakPassphrase();\n        }\n\n        let this->passphrase = passphrase;\n\n        return this;\n    }\n\n    /**\n     * The \"sub\" (subject) claim identifies the principal that is the\n     * subject of the JWT.  The claims in a JWT are normally statements\n     * about the subject.  The subject value MUST either be scoped to be\n     * locally unique in the context of the issuer or be globally unique.\n     * The processing of this claim is generally application specific.  The\n     * \"sub\" value is a case-sensitive string containing a StringOrURI\n     * value.  Use of this claim is OPTIONAL.\n     *\n     * @param string $subject\n     *","sourceCodeStart":382,"sourceCodeEnd":418,"githubUrl":"https://github.com/phalcon/cphalcon/blob/b7419de9cd0a8a3f48441ead84c9f8415d463e25/phalcon/Encryption/Security/JWT/Builder.zep#L382-L418","documentation":"Error \"Invalid passphrase (too weak)\" thrown in phalcon/cphalcon.","triggerScenarios":"Thrown at phalcon/Encryption/Security/JWT/Builder.zep:400 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b7419de9cd0a8a3f48441ead84c9f8415d463e25","analyzedAt":"2026-08-21T06:21:18.811Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}