René's URL Explorer Experiment


Title: generateur de mdp en java · Issue #188 · hmkcode/Java · GitHub

Open Graph Title: generateur de mdp en java · Issue #188 · hmkcode/Java

X Title: generateur de mdp en java · Issue #188 · hmkcode/Java

Description: // Fichier: PasswordGeneratorGUI.java import javax.swing.; import java.awt.; import java.awt.datatransfer.; import java.awt.event.; import java.security.SecureRandom; import java.util.*; public class PasswordGeneratorGUI extends JFrame {...

Open Graph Description: // Fichier: PasswordGeneratorGUI.java import javax.swing.; import java.awt.; import java.awt.datatransfer.; import java.awt.event.; import java.security.SecureRandom; import java.util.*; public cla...

X Description: // Fichier: PasswordGeneratorGUI.java import javax.swing.; import java.awt.; import java.awt.datatransfer.; import java.awt.event.; import java.security.SecureRandom; import java.util.*; public cla...

Opengraph URL: https://github.com/hmkcode/Java/issues/188

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"generateur de mdp en java","articleBody":"// Fichier: PasswordGeneratorGUI.java\nimport javax.swing.*;\nimport java.awt.*;\nimport java.awt.datatransfer.*;\nimport java.awt.event.*;\nimport java.security.SecureRandom;\nimport java.util.*;\n\npublic class PasswordGeneratorGUI extends JFrame {\n    private static final String LOWER = \"abcdefghijklmnopqrstuvwxyz\";\n    private static final String UPPER = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n    private static final String DIGIT = \"0123456789\";\n    private static final String SYMBOL = \"!@#$%^\u0026*;\n\n    private static final Set\u003cCharacter\u003e SIMILAR = new HashSet\u003c\u003e(Arrays.asList(\n            '0','O','o','1','l','I','|','5','S','2','Z','8','B'\n    ));\n    \n\n    private static final SecureRandom RNG = new SecureRandom();\n\n    // UI components\n    private JTextField outputField;\n    private JSlider lengthSlider;\n    private JCheckBox lowerBox, upperBox, digitBox, symbolBox, excludeSimilarBox, requireEachBox;\n    private JLabel entropyLabel, strengthLabel;\n\n    public PasswordGeneratorGUI() {\n        super(\"🔐 Générateur de mots de passe\");\n\n        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n        setSize(500, 300);\n        setLayout(new BorderLayout(10,10));\n\n        // Top output\n        JPanel top = new JPanel(new BorderLayout(5,5));\n        outputField = new JTextField();\n        outputField.setFont(new Font(\"Monospaced\", Font.PLAIN, 16));\n        top.add(outputField, BorderLayout.CENTER);\n\n        JButton copyBtn = new JButton(\"Copier\");\n        copyBtn.addActionListener(e -\u003e copyToClipboard());\n        top.add(copyBtn, BorderLayout.EAST);\n\n        add(top, BorderLayout.NORTH);\n\n        // Center controls\n        JPanel center = new JPanel();\n\n        center.setLayout(new GridLayout(0,2));\n\n        lowerBox = new JCheckBox(\"Minuscules (a-z)\", true);\n        upperBox = new JCheckBox(\"Majuscules (A-Z)\", true);\n        digitBox = new JCheckBox(\"Chiffres (0-9)\", true);\n        symbolBox = new JCheckBox(\"Symboles (!@#…)\", true);\n        excludeSimilarBox = new JCheckBox(\"Exclure caractères ambigus (0,O,1,l...)\", true);\n        requireEachBox = new JCheckBox(\"Exiger ≥1 caractère de chaque catégorie\", true);\n\n        center.add(lowerBox);\n        center.add(upperBox);\n        center.add(digitBox);\n        center.add(symbolBox);\n        center.add(excludeSimilarBox);\n        center.add(requireEachBox);\n\n        add(center, BorderLayout.CENTER);\n\n        // Bottom panel\n        JPanel bottom = new JPanel(new BorderLayout(5,5));\n\n        lengthSlider = new JSlider(8, 64, 16);\n        lengthSlider.setMajorTickSpacing(14);\n        lengthSlider.setMinorTickSpacing(2);\n        lengthSlider.setPaintTicks(true);\n        lengthSlider.setPaintLabels(true);\n\n        bottom.add(new JLabel(\"Longueur :\"), BorderLayout.WEST);\n        bottom.add(lengthSlider, BorderLayout.CENTER);\n\n        JButton genBtn = new JButton(\"Générer\");\n        genBtn.addActionListener(e -\u003e generatePassword());\n        bottom.add(genBtn, BorderLayout.EAST);\n\n        add(bottom, BorderLayout.SOUTH);\n\n        // Status panel\n        JPanel status = new JPanel(new GridLayout(2,1));\n        entropyLabel = new JLabel(\"Entropie : -- bits\");\n        strengthLabel = new JLabel(\"Robustesse : --\");\n        status.add(entropyLabel);\n        status.add(strengthLabel);\n        add(status, BorderLayout.WEST);\n\n        setLocationRelativeTo(null); // center window\n        setVisible(true);\n    }\n\n    private void copyToClipboard() {\n        String text = outputField.getText();\n        if (text.isEmpty()) return;\n        Toolkit.getDefaultToolkit()\n                .getSystemClipboard()\n                .setContents(new StringSelection(text), null);\n        JOptionPane.showMessageDialog(this, \"Mot de passe copié !\");\n    }\n\n    private void generatePassword() {\n        int length = lengthSlider.getValue();\n\n        java.util.List\u003cString\u003e sets = new ArrayList\u003c\u003e();\n        if (lowerBox.isSelected()) sets.add(LOWER);\n        if (upperBox.isSelected()) sets.add(UPPER);\n        if (digitBox.isSelected()) sets.add(DIGIT);\n        if (symbolBox.isSelected()) sets.add(SYMBOL);\n\n        String pool = combineAndFilter(sets, excludeSimilarBox.isSelected());\n\n        if (pool.isEmpty()) {\n            JOptionPane.showMessageDialog(this, \"Aucun jeu de caractères disponible !\");\n            return;\n        }\n\n        String pwd = requireEachBox.isSelected()\n                ? generateWithRequirement(length, sets, pool, excludeSimilarBox.isSelected())\n                : randomFromPool(pool, length);\n\n        outputField.setText(pwd);\n\n        // update entropy\n        int uniqueChars = (int) pool.chars().distinct().count();\n        double entropyBits = length * (Math.log(uniqueChars)/Math.log(2));\n        String strength = strengthLabel(entropyBits);\n\n        entropyLabel.setText(String.format(\"Entropie : ~%.0f bits\", entropyBits));\n        strengthLabel.setText(\"Robustesse : \" + strength);\n    }\n\n    private String combineAndFilter(java.util.List\u003cString\u003e sets, boolean excludeSimilar) {\n        StringBuilder sb = new StringBuilder();\n        for (String s : sets) sb.append(s);\n\n        StringBuilder out = new StringBuilder();\n        for (char c : sb.toString().toCharArray()) {\n            if (excludeSimilar \u0026\u0026 SIMILAR.contains(c)) continue;\n            out.append(c);\n        }\n        return out.toString();\n    }\n\n    private String generateWithRequirement(int length, java.util.List\u003cString\u003e sets, String pool, boolean excludeSimilar) {\n        java.util.List\u003cCharacter\u003e chars = new ArrayList\u003c\u003e();\n\n        for (String s : sets) {\n            String filtered = combineAndFilter(Collections.singletonList(s), excludeSimilar);\n            if (!filtered.isEmpty()) {\n                chars.add(filtered.charAt(RNG.nextInt(filtered.length())));\n            }\n        }\n\n        for (int i = chars.size(); i \u003c length; i++) {\n            chars.add(pool.charAt(RNG.nextInt(pool.length())));\n        }\n\n        // shuffle\n        Collections.shuffle(chars, RNG);\n        StringBuilder sb = new StringBuilder();\n        for (char c : chars) sb.append(c);\n        return sb.toString();\n    }\n\n    private String randomFromPool(String pool, int length) {\n        StringBuilder sb = new StringBuilder(length);\n        for (int i = 0; i \u003c length; i++) {\n            sb.append(pool.charAt(RNG.nextInt(pool.length())));\n        }\n        return sb.toString();\n    }\n\n    private String strengthLabel(double bits) {\n        if (bits \u003c 28) return \"Très faible\";\n        if (bits \u003c 36) return \"Faible\";\n        if (bits \u003c 60) return \"Correct\";\n        if (bits \u003c 128) return \"Fort\";\n        return \"Très fort\";\n    }\n\n    public static void main(String[] args) {\n        SwingUtilities.invokeLater(PasswordGeneratorGUI::new);\n    }\n}\n","author":{"url":"https://github.com/zainoxIII","@type":"Person","name":"zainoxIII"},"datePublished":"2025-10-01T13:10:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/188/Java/issues/188"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c2b43e65-0277-110c-9d67-6aaaf64fa2ae
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8D02:1EFC6:176D78C:2028D2E:696AABA9
html-safe-nonceca3c4a0e981fcc172f692f71fc7fc9e3e7b18b8484485a10a01f0dd48c911131
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDAyOjFFRkM2OjE3NkQ3OEM6MjAyOEQyRTo2OTZBQUJBOSIsInZpc2l0b3JfaWQiOiI0NjE5MTQ5MDYyNzQzNjk4MzQ1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac7d72e62dcddf67b994d68c238556f59c537060c1c44da18795423779248a8148
hovercard-subject-tagissue:3473509086
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/hmkcode/Java/188/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a1bb4f80d6db57cdcf5f7e8b0a160dc0f41a03ce4fb82ee7ee5b02490ba48787/hmkcode/Java/issues/188
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a1bb4f80d6db57cdcf5f7e8b0a160dc0f41a03ce4fb82ee7ee5b02490ba48787/hmkcode/Java/issues/188
og:image:alt// Fichier: PasswordGeneratorGUI.java import javax.swing.; import java.awt.; import java.awt.datatransfer.; import java.awt.event.; import java.security.SecureRandom; import java.util.*; public cla...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamezainoxIII
hostnamegithub.com
expected-hostnamegithub.com
None3eaf9b8cf1badcd7041a8ad480b9d9b28bea0ef1cc821ca9ff20f2cc7f4fe4b9
turbo-cache-controlno-preview
go-importgithub.com/hmkcode/Java git https://github.com/hmkcode/Java.git
octolytics-dimension-user_id3790597
octolytics-dimension-user_loginhmkcode
octolytics-dimension-repository_id9546965
octolytics-dimension-repository_nwohmkcode/Java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id9546965
octolytics-dimension-repository_network_root_nwohmkcode/Java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasedd9a979046e6382bd084e2bd873bf65f797125ff
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/hmkcode/Java/issues/188#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fhmkcode%2FJava%2Fissues%2F188
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fhmkcode%2FJava%2Fissues%2F188
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=hmkcode%2FJava
Reloadhttps://github.com/hmkcode/Java/issues/188
Reloadhttps://github.com/hmkcode/Java/issues/188
Reloadhttps://github.com/hmkcode/Java/issues/188
hmkcode https://github.com/hmkcode
Javahttps://github.com/hmkcode/Java
Notifications https://github.com/login?return_to=%2Fhmkcode%2FJava
Fork 1.5k https://github.com/login?return_to=%2Fhmkcode%2FJava
Star 896 https://github.com/login?return_to=%2Fhmkcode%2FJava
Code https://github.com/hmkcode/Java
Issues 22 https://github.com/hmkcode/Java/issues
Pull requests 86 https://github.com/hmkcode/Java/pulls
Actions https://github.com/hmkcode/Java/actions
Projects 0 https://github.com/hmkcode/Java/projects
Wiki https://github.com/hmkcode/Java/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/hmkcode/Java/security
Please reload this pagehttps://github.com/hmkcode/Java/issues/188
Insights https://github.com/hmkcode/Java/pulse
Code https://github.com/hmkcode/Java
Issues https://github.com/hmkcode/Java/issues
Pull requests https://github.com/hmkcode/Java/pulls
Actions https://github.com/hmkcode/Java/actions
Projects https://github.com/hmkcode/Java/projects
Wiki https://github.com/hmkcode/Java/wiki
Security https://github.com/hmkcode/Java/security
Insights https://github.com/hmkcode/Java/pulse
New issuehttps://github.com/login?return_to=https://github.com/hmkcode/Java/issues/188
New issuehttps://github.com/login?return_to=https://github.com/hmkcode/Java/issues/188
generateur de mdp en javahttps://github.com/hmkcode/Java/issues/188#top
https://github.com/zainoxIII
https://github.com/zainoxIII
zainoxIIIhttps://github.com/zainoxIII
on Oct 1, 2025https://github.com/hmkcode/Java/issues/188#issue-3473509086
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.