From ef17d8626b3d7d616c26fce2d23fa2943b14a26f Mon Sep 17 00:00:00 2001 From: peckz Date: Tue, 23 Sep 2025 19:02:36 +0200 Subject: [PATCH] chore: rename password generator --- components/seo/PasswordGeneratorSEO.tsx | 92 ------------------ components/seo/RandomStringGeneratorSEO.tsx | 94 +++++++++++++++++++ components/utils/tools-list.ts | 4 +- ...erator.tsx => random-string-generator.tsx} | 36 ++++--- 4 files changed, 117 insertions(+), 109 deletions(-) delete mode 100644 components/seo/PasswordGeneratorSEO.tsx create mode 100644 components/seo/RandomStringGeneratorSEO.tsx rename pages/utilities/{password-generator.tsx => random-string-generator.tsx} (82%) diff --git a/components/seo/PasswordGeneratorSEO.tsx b/components/seo/PasswordGeneratorSEO.tsx deleted file mode 100644 index eb08edb..0000000 --- a/components/seo/PasswordGeneratorSEO.tsx +++ /dev/null @@ -1,92 +0,0 @@ -export default function PasswordGeneratorSEO() { - return ( -
-
-

- Generate secure passwords instantly with this free online password - generator. Whether you're protecting your accounts, apps, or - sensitive data, Jam's Password Generator creates strong, - randomized passwords to keep you safe. -

-
- -
-

How to Use Jam's Password Generator

-

- Quickly create a strong password tailored to your needs. Follow these - simple steps: -

-
    -
  • - Select options:
    Choose to include lowercase, - uppercase, numbers, and/or symbols. -
  • -
  • - Set length:
    Pick a password length. -
  • -
  • - Generate:
    Click "Generate" to instantly get - a secure password. -
  • -
  • - Copy:
    Copy your password safely with one click. -
  • -
-
- -
-

Why Use a Password Generator?

-

- Manually created passwords are often weak and easy to guess. A - password generator helps you avoid common mistakes and ensures your - credentials are strong. -

-
    -
  • - Security:
    Random, unpredictable passwords are harder - to crack. -
  • -
  • - Customization:
    Adjust the length and types of - characters to meet site requirements. -
  • -
  • - Convenience:
    Generate reliable passwords instantly, - without thinking. -
  • -
-
- -
-

FAQs

-
    -
  • - Is this password generator free?
    Yes. It's free, - open-source, and ad-free. -
  • -
  • - Are the generated passwords stored?
    - No. All jam.dev/utilities are local-only browser tools that work - entirely without any backend. Your passwords are generated in your - browser and never leave your device. -
  • -
  • - How long should my password be?
    For strong security, - use at least 12 characters. For maximum protection, 20+ characters - are recommended. -
  • -
  • - Can I use these passwords everywhere?
    Yes. They are - compatible with any website, app, or system that accepts custom - passwords. -
  • -
  • - How strong are the passwords?
    They are generated using - cryptographically secure random values, making them highly resistant - to attacks. -
  • -
-
-
- ); -} diff --git a/components/seo/RandomStringGeneratorSEO.tsx b/components/seo/RandomStringGeneratorSEO.tsx new file mode 100644 index 0000000..370ae45 --- /dev/null +++ b/components/seo/RandomStringGeneratorSEO.tsx @@ -0,0 +1,94 @@ +export default function RandomStringGeneratorSEO() { + return ( +
+
+

+ Generate cryptographically secure random strings instantly with this + free online random string generator. Whether you're creating API + keys, tokens, or secure identifiers, Jam's Random String + Generator creates strong, randomized strings with password-like + structure to keep your applications secure. +

+
+ +
+

How to Use Jam's Random String Generator

+

+ Quickly create a cryptographically strong random string tailored to + your needs. Follow these simple steps: +

+
    +
  • + Select options:
    Choose to include lowercase, + uppercase, numbers, and/or symbols. +
  • +
  • + Set length:
    Pick a string length (4-128 characters). +
  • +
  • + Generate:
    Click "Generate Random String" to + instantly get a cryptographically secure random string. +
  • +
  • + Copy:
    Copy your generated string safely with one + click. +
  • +
+
+ +
+

Why use a Random String Generator?

+

+ Manually created strings are often predictable and easy to guess. A + random string generator helps you avoid common patterns and ensures + your generated strings are cryptographically secure. +

+
    +
  • + Security:
    Random, unpredictable strings are harder to + crack or guess. +
  • +
  • + Customization:
    Adjust the length and character sets to + meet your application requirements. +
  • +
  • + Convenience:
    Generate reliable random strings + instantly, perfect for API keys, tokens, or secure identifiers. +
  • +
+
+ +
+

FAQs

+
    +
  • + Is this random string generator free?
    Yes. It's + free, open-source, and ad-free. +
  • +
  • + Are the generated strings stored?
    + No. All jam.dev/utilities are local-only browser tools that work + entirely without any backend. Your random strings are generated in + your browser and never leave your device. +
  • +
  • + How long should my random string be?
    For strong + security, use at least 12 characters. For maximum protection, 20+ + characters are recommended. +
  • +
  • + What can I use these strings for?
    + Perfect for API keys, tokens, session IDs, secret keys, or any + secure identifier in your applications. +
  • +
  • + How secure are the generated strings?
    They are + generated using cryptographically secure random values, making them + highly resistant to prediction and brute-force attacks. +
  • +
+
+
+ ); +} diff --git a/components/utils/tools-list.ts b/components/utils/tools-list.ts index eacad4c..15d2799 100644 --- a/components/utils/tools-list.ts +++ b/components/utils/tools-list.ts @@ -156,9 +156,9 @@ export const tools = [ link: "/utilities/internet-speed-test", }, { - title: "Password Generator", + title: "Random String Generator", description: - "Mix uppercase, lowercase, numbers, and symbols to generate bulletproof passwords that will keep your accounts safe.", + "Generate cryptographically secure random strings with configurable character sets. Perfect for API keys, tokens, passwords, and secure identifiers.", link: "/utilities/password-generator", }, ]; diff --git a/pages/utilities/password-generator.tsx b/pages/utilities/random-string-generator.tsx similarity index 82% rename from pages/utilities/password-generator.tsx rename to pages/utilities/random-string-generator.tsx index b06919b..cf2b512 100644 --- a/pages/utilities/password-generator.tsx +++ b/pages/utilities/random-string-generator.tsx @@ -12,12 +12,12 @@ import CallToActionGrid from "@/components/CallToActionGrid"; import Meta from "@/components/Meta"; import { Input } from "@/components/ds/InputComponent"; import { PasswordBuilder } from "@/components/utils/password-generator.utils"; -import PasswordGeneratorSEO from "@/components/seo/PasswordGeneratorSEO"; +import RandomStringGeneratorSEO from "@/components/seo/RandomStringGeneratorSEO"; import GitHubContribution from "@/components/GitHubContribution"; import { cn } from "@/lib/utils"; export default function PasswordGenerator() { - const [password, setPassword] = useState(""); + const [generatedString, setGeneratedString] = useState(""); const [length, setLength] = useState(16); const [includeLowercase, setIncludeLowercase] = useState(true); const [includeUppercase, setIncludeUppercase] = useState(true); @@ -26,7 +26,7 @@ export default function PasswordGenerator() { const { buttonText, handleCopy } = useCopyToClipboard(); const outputRef = useRef(null); - const generatePassword = useCallback(() => { + const generateRandomString = useCallback(() => { const builder = new PasswordBuilder( includeLowercase, includeUppercase, @@ -34,7 +34,7 @@ export default function PasswordGenerator() { includeSymbols, length ); - setPassword(builder.Build()); + setGeneratedString(builder.Build()); }, [ includeLowercase, includeUppercase, @@ -75,15 +75,15 @@ export default function PasswordGenerator() { return (
@@ -147,7 +147,7 @@ export default function PasswordGenerator() {
- +
- +
- +