Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4098042
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:15:04+00:00 2026-05-20T20:15:04+00:00

im trying to make a wep key generator and ive read how wep keys

  • 0

im trying to make a wep key generator and ive read how wep keys work but i really dont even know how to start making it. can anyone give me an example or direct me to a tutorial? i tried using google but no luck.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T20:15:05+00:00Added an answer on May 20, 2026 at 8:15 pm

    in javascript…

    function generateHexString(length) {
      // Use crypto.getRandomValues if available
      if (
        typeof crypto !== 'undefined' 
        && typeof crypto.getRandomValues === 'function'
      ) {
        var tmp = new Uint8Array(Math.max((~~length)/2));
        crypto.getRandomValues(tmp);
        return Array.from(tmp)
          .map(n => ('0'+n.toString(16)).substr(-2))
          .join('')
          .substr(0,length);
      }
    
      // fallback to Math.getRandomValues
      var ret = "";
      while (ret.length < length) {
        ret += Math.random().toString(16).substring(2);
      }
      return ret.substring(0,length);
    }
    
    // 40-/64-bit WEP: 10 digit key
    alert("40-bit:" + generateHexString(10));
    
    // 104-/128-bit WEP: 26 digit key
    alert("104-bit:" + generateHexString(26))
    
    // 256-bit WEP: 58 digit key
    alert("256-bit:" + generateHexString(58));
    

    If you wanted to generate something based on a fixed string input, there are methods for doing that as well… this should give you what you are looking for in terms of just a straight random hex string of the correct length.

    I’m not sure if there is a standard passphrase to WEP generator, but most limit the input to printable characters, and the algorythms are generally weak.. best bet is to simply use WPA2PSK if you can.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

im trying make one replace in string from a array but this dont work
I'm trying make one treeView with infinite subgroups. I can add my groups but
I'm trying to make a change to an old appengine application, but now after
I am trying make a segue call in a tableview , but the application
trying to make 5 curl childs for curl handler and defining them, but can't
I'm trying make some stuff in jQuery using ASP.NET. But the ID from runat=server
I've been banging my head against a wall trying make this work for a
Right now I'm trying make some browser based game. But I have little questions.
Trying to make a canvas effect work in IE8. With excanvas.js there is no
Trying to make a multilingual installer - the process is working in general, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.