begin process at 2012 05 27 06:48:20
  Trouver un code source :
 
dans
 
Accueil > 

Code

 > 

Divers

 > GENERATEUR DE MOT DE PASSE

GENERATEUR DE MOT DE PASSE


 Information sur la source

Note :
7,75 / 10 - par 4 personnes
7,75 / 10

  • 1

  • 2

  • 3

  • 4

  • 5

  • 6

  • 7

  • 8

  • 9

  • 10
Catégorie :Divers Niveau :Initié Date de création :31/01/2002 Date de mise à jour :31/01/2002 09:44:17 Vu / téléchargé :34 114 / 934

Auteur : cbu

Ecrire un message privé
Site perso
Commentaire sur cette source (11)
Ajouter un commentaire et/ou une note

 Description

Cliquez pour voir la capture en taille normale
Génère des mots de passe automatiquement à partir de critères à déterminer
(Ce code n'est pas de moi, je l'ai récupéré de Zataz.com)

Source

  • <HTML>
  • <HEAD>
  • <TITLE>Generateur de mots de passe</TITLE>
  • <STYLE TYPE="text/css">
  • <!--
  • A:link {text-decoration: none;}
  • A:active {text-decoration: none;}
  • A:visited {text-decoration: none;}
  • A:hover {text-decoration: none; color: #FFFFFF;}
  • TD { font-family: Tahoma, Verdana, Arial, Helvetica; font-size: 8pt;}
  • .title { font-family: Verdana, Tahoma, Arial, Helvetica; font-weight: bold; font-size: 11pt;}
  • .header { font-family: Tahoma, Verdana, Arial, Helvetica; font-size : 10pt; font-weight : bold; color : #FFFFFF; }
  • .menutitle { font-family: Verdana, Arial, Helvetica; font-size : 8pt; font-weight : bold; color : #888888; }
  • .quote { font-family: Tahoma, Verdana, Arial, Helvetica; font-size: 8pt; color : #888888; }
  • //-->
  • </STYLE>
  • <SCRIPT LANGUAGE="JavaScript">
  • <!-- Original: ataxx@visto.com -->
  • <!-- This script and many more are available free online at -->
  • <!-- The JavaScript Source!! http://javascript.internet.com -->
  • <!-- Begin
  • function getRandomNum(lbound, ubound) {
  • return (Math.floor(Math.random() * (ubound - lbound)) + lbound);
  • }
  • function getRandomChar(number, lower, upper, other, extra) {
  • var numberChars = "0123456789";
  • var lowerChars = "abcdefghijklmnopqrstuvwxyz";
  • var upperChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  • var otherChars = "`~!@#$%^&*()-_=+[{]}\\|;:'\",<.>/? ";
  • var charSet = extra;
  • if (number == true)
  • charSet += numberChars;
  • if (lower == true)
  • charSet += lowerChars;
  • if (upper == true)
  • charSet += upperChars;
  • if (other == true)
  • charSet += otherChars;
  • return charSet.charAt(getRandomNum(0, charSet.length));
  • }
  • function getPassword(length, extraChars, firstNumber, firstLower, firstUpper, firstOther,
  • latterNumber, latterLower, latterUpper, latterOther) {
  • var rc = "";
  • if (length > 0)
  • rc = rc + getRandomChar(firstNumber, firstLower, firstUpper, firstOther, extraChars);
  • for (var idx = 1; idx < length; ++idx) {
  • rc = rc + getRandomChar(latterNumber, latterLower, latterUpper, latterOther, extraChars);
  • }
  • return rc;
  • }
  • // End -->
  • </script>
  • </HEAD>
  • <BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FFFFFF" VLINK="#FFFFFF" ALINK="#FFFFFF" MARGINHEIGHT="0" MARGINWIDTH="0" TOPMARGIN=0 BOTTOMMARGIN="0">
  • <TABLE ALIGN="left" WIDTH="464" CELLSPACING="1" CELLPADDING="1" BORDER="0" BGCOLOR="#000000">
  • <TR>
  • <TD ROWSPAN="3" VALIGN="top" BGCOLOR="#FFFFFF" WIDTH=460>
  • <div align="center"><BR>
  • <!-- STEP TWO: Copy this code into the BODY of your HTML document -->
  • Generateur de mot de passe </div>
  • <center>
  • <table width=97% border=0>
  • <tr align=center>
  • <td> <form name="myform">
  • <table border=0 width="330">
  • <tr>
  • <td> Premier caract&eacute;re</td>
  • <td>
  • <input type=checkbox name=firstNumber checked>
  • Chiffres
  • <input type=checkbox name=firstLower checked>
  • Minuscules<br>
  • <input type=checkbox name=firstUpper checked>
  • Majuscules
  • <input type=checkbox name=firstOther>
  • Autres</td>
  • </tr>
  • <tr>
  • <td> Caract&eacute;res suivants</td>
  • <td>
  • <input type=checkbox name=latterNumber checked>
  • Chiffres
  • <input type=checkbox name=latterLower checked>
  • Minuscules<br>
  • <input type=checkbox name=latterUpper checked>
  • Majuscules
  • <input type=checkbox name=latterOther>
  • Autres</td>
  • </tr>
  • <tr>
  • <td> Taille du mot de passe</td>
  • <td>
  • <input type=text name=passwordLength value="7" size=3>
  • </td>
  • </tr>
  • <tr>
  • <td> Autres caract&eacute;res</td>
  • <td>
  • <input type=text name=extraChars size=20>
  • </td>
  • </tr>
  • </table>
  • </td>
  • </tr>
  • <tr align=center>
  • <td> Votre mot de passe
  • <input type=text name=password size=20>
  • <br>
  • <input type=button value="Generateur de mots de passe" onClick="document.myform.password.value =
  • getPassword(document.myform.passwordLength.value, document.myform.extraChars.value,
  • document.myform.firstNumber.checked, document.myform.firstLower.checked,
  • document.myform.firstUpper.checked, document.myform.firstOther.checked,
  • document.myform.latterNumber.checked, document.myform.latterLower.checked,
  • document.myform.latterUpper.checked, document.myform.latterOther.checked);">
  • </form>
  • </td>
  • </tr>
  • </table>
  • </center>
  • </TD>
  • </TR>
  • </TABLE>
  • </BODY>
  • </HTML>
<HTML>
<HEAD>
	<TITLE>Generateur de mots de passe</TITLE>
			<STYLE TYPE="text/css">
		<!--
		A:link     {text-decoration: none;}
		A:active   {text-decoration: none;}
		A:visited  {text-decoration: none;}
		A:hover    {text-decoration: none; color: #FFFFFF;}


		TD         { font-family: Tahoma, Verdana, Arial, Helvetica; font-size: 8pt;}
		.title     { font-family: Verdana, Tahoma, Arial, Helvetica; font-weight: bold; font-size: 11pt;}
		.header	   { font-family: Tahoma, Verdana, Arial, Helvetica;  font-size : 10pt; font-weight : bold; color : #FFFFFF; }
		.menutitle { font-family: Verdana, Arial, Helvetica;  font-size : 8pt; font-weight : bold; color : #888888; }
		.quote     { font-family: Tahoma, Verdana, Arial, Helvetica; font-size: 8pt; color : #888888; }
		//-->
	 </STYLE>

	 <SCRIPT LANGUAGE="JavaScript">
<!-- Original:  ataxx@visto.com -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function getRandomNum(lbound, ubound) {
return (Math.floor(Math.random() * (ubound - lbound)) + lbound);
}
function getRandomChar(number, lower, upper, other, extra) {
var numberChars = "0123456789";
var lowerChars = "abcdefghijklmnopqrstuvwxyz";
var upperChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
var otherChars = "`~!@#$%^&*()-_=+[{]}\\|;:'\",<.>/? ";
var charSet = extra;
if (number == true)
charSet += numberChars;
if (lower == true)
charSet += lowerChars;
if (upper == true)
charSet += upperChars;
if (other == true)
charSet += otherChars;
return charSet.charAt(getRandomNum(0, charSet.length));
}
function getPassword(length, extraChars, firstNumber, firstLower, firstUpper, firstOther,
latterNumber, latterLower, latterUpper, latterOther) {
var rc = "";
if (length > 0)
rc = rc + getRandomChar(firstNumber, firstLower, firstUpper, firstOther, extraChars);
for (var idx = 1; idx < length; ++idx) {
rc = rc + getRandomChar(latterNumber, latterLower, latterUpper, latterOther, extraChars);
}
return rc;
}
// End -->
</script>


</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FFFFFF" VLINK="#FFFFFF" ALINK="#FFFFFF" MARGINHEIGHT="0" MARGINWIDTH="0" TOPMARGIN=0 BOTTOMMARGIN="0">
<TABLE ALIGN="left" WIDTH="464" CELLSPACING="1" CELLPADDING="1" BORDER="0" BGCOLOR="#000000">
  <TR>
    <TD ROWSPAN="3" VALIGN="top" BGCOLOR="#FFFFFF" WIDTH=460>
      <div align="center"><BR>
        <!-- STEP TWO: Copy this code into the BODY of your HTML document  -->
        Generateur de mot de passe </div>
      <center>
        <table width=97% border=0>
          <tr align=center>
            <td> <form name="myform">
              <table border=0 width="330">
                <tr>
                  <td> Premier caract&eacute;re</td>
                  <td>
                    <input type=checkbox name=firstNumber checked>
                    Chiffres
<input type=checkbox name=firstLower checked>
                    Minuscules<br>
                    <input type=checkbox name=firstUpper checked>
                    Majuscules
<input type=checkbox name=firstOther>
                    Autres</td>
                </tr>
                <tr>
                  <td> Caract&eacute;res suivants</td>
                  <td>
                    <input type=checkbox name=latterNumber checked>
                    Chiffres
<input type=checkbox name=latterLower checked>
                    Minuscules<br>
                    <input type=checkbox name=latterUpper checked>
                    Majuscules
<input type=checkbox name=latterOther>
                    Autres</td>
                </tr>
                <tr>
                  <td> Taille du mot de passe</td>
                  <td>
                    <input type=text name=passwordLength value="7" size=3>
                  </td>
                </tr>
                <tr>
                  <td> Autres caract&eacute;res</td>
                  <td>
                    <input type=text name=extraChars size=20>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
          <tr align=center>
            <td> Votre mot de passe
              <input type=text name=password size=20>
              <br>
              <input type=button value="Generateur de mots de passe" onClick="document.myform.password.value =
getPassword(document.myform.passwordLength.value, document.myform.extraChars.value,
document.myform.firstNumber.checked, document.myform.firstLower.checked,
document.myform.firstUpper.checked, document.myform.firstOther.checked,
document.myform.latterNumber.checked, document.myform.latterLower.checked,
document.myform.latterUpper.checked, document.myform.latterOther.checked);">
              </form>
            </td>
          </tr>
        </table>
      </center>
    </TD>
  </TR>
</TABLE>

</BODY>
</HTML>

 


 Fichier Zip

Les Membres Club peuvent télécharger directement un fichier contenu dans le zip sans télécharger le zip en entier !

Télécharger le zip


 Sources de la même categorie

Source avec Zip Source avec une capture SLIDESHOW IMAGES ET TEXTES EN PUR JAVASCRIPT par ansuzpeorth
Source avec Zip INPUT TEXT AUTOMATIQUE CREATION SUPPRESSION par lycanges
Source avec Zip Source avec une capture TABLE_SV : TABLEAU DYNAMIQUE, MONTRER/CACHER COLONNE SUR DEM... par synanceia
COLONNES ADAPTABLES EN HAUTEUR par dronoide
Source avec Zip VECTEURS ET MATRICES: OUTILS GRAPHIQUES UTILES par william voirol

Commentaires et avis

Commentaire de Mercury le 25/04/2002 15:35:32

Pas mal. Fonctionnel et pratique. 10/10

Commentaire de DARTHVADOR le 07/02/2003 13:09:40

nul et inutile

Commentaire de victorcoasne le 24/04/2003 10:30:14

Quand on met un mot de passe que l'on met générer le mot de passe si on remet le même il donne un autre mot de passe

Commentaire de siddharta le 01/05/2003 00:10:12

DARTHVADOR c'est vraiment un commentaire de blaireau mononeuronal que tu nous pond là sans rire.
"C'est nul", peut-être, malgré tout d'autres ne l'ont pas fait. C'est "inutile"... sûrement pas, y'en a qui en ont besoin. En tout cas, c'est pas à toi de juger de l'utilité de ce script.
Avec un pianotage pourri comme le tien, c'est pas le script que tu insultes, ce sont ceux qui l'utilisent.
Alors qu'ils en jugent par eux-même, s'ils veulent se rallier à moi quand je te dis au nom de ceux qui l'utilisent ce putain de script : "on t'emmerde."
- Va découper du jedi au fond des toilettes -

Le seul truc nul et inutile sur cette page, c'est bien ton commentaire.

Commentaire de aurelien0306 le 11/08/2003 14:42:20

lol, il ne faut pas dire "nul, et inutile" mais "je trouve ca pas intéressant et je n'en vois pas l'utilité" car après tout il peut y avoir un bout de ce script qui peut intéresser certaines personnes....
Mais bon attention à pas déborder non plus siddharta ;)

Commentaire de nemesisproject le 09/11/2003 20:55:37

N'y a t'il pas moyen de faire ça sur XP?

Commentaire de mobilicorpus le 20/08/2005 11:59:08

Ça fonctionne très bien sous XP.

Commentaire de carate le 25/02/2007 11:02:31

pas très utile mais pas mal

Commentaire de M0zArT le 15/05/2007 15:37:32

Pas très utile ?
Je dois développer un outil semblable à un hébergeur d'images en ligne et je dois aussi gérer les droits ainsi que la création de compte. Cet outil comporte une fonction "Création de compte pour un ami", la génération d'un mot de passe aléatoire est donc non seulement intéressante mais utile pour ce genre de fonction.
Je test le code dès que possible :)

Commentaire de tete9 le 19/01/2008 08:33:36

Hum... Il me semble que j'ai déjà vu ce code sur plein de sites... Mais elle est bien ta source !

Commentaire de max69530 le 19/05/2008 17:01:08

salut

J'ai mis le script sur mon site mais quand je clique enerer et bas il n'y a rien qui s'affiche

comment faire ?

A+

 Ajouter un commentaire




Nos sponsors


Sondage...

CalendriCode

Mai 2012
LMMJVSD
 123456
78910111213
14151617181920
21222324252627
28293031   

Consulter la suite du CalendriCode

A découvrir



 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 0,998 sec (3)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales