4096) { throw new RuntimeException('Managed credential file could not be read.'); } $password = rtrim($password, "\r\n"); if ($password === '' || strpbrk($password, "\r\n\0") !== false) { throw new RuntimeException('Managed credential file is invalid.'); } return $password; } }