Défi pour les motivés

Olympiades mathématiques, énigmes et défis
louise56
Messages: 5
Enregistré le: 08 Aoû 2008, 16:57

défi pour les motivés

par louise56 » 08 Aoû 2008, 17:15

bonjours tout le monde,

Le chanteur Cat Stevens veut générer une liste de pass pour l'entrée de sa demeure, il utilise un logiciel nommé masking password generator (shareware limitée a 30J dans sa version gratuite).
Le logiciel fonctionne avec des mask, il faut correctement mettre les caractères pour que le logiciel exécute la génération des pass.
Cat Stevens est très parano il veut utiliser une clé comprenant 23 caractères, de a à z (en minuscule) + 1 chiffre placé aléatoirement dans chaque pass générés.
Exemple
aozejjhsdqjnbfjsorlesc4
7akxrtenksuhelotyfzuavs
akxtgernsjuyev4aistynei

voici l'aide, proposé par le logiciel (oui ca se corse c'est en anglais):

Default Mask Symbols

#
Numeric - will be replaced by a random number (0-9)

>
Uppercase - alphabetic characters after this symbol are forced to uppercase

<
Lowercase - alphabetic characters after this symbol are forced to lowercase

<>
No case - alphabetic characters after this symbol can be either uppercase or lowercase (this is the default setting)

A
Alpha - will be replaced by an alphabetic character (A-Z and/or a-z depending on case)

N
Alphanumeric - will be replaced by an alphanumeric character (Any of A-Z, a-z, or 0-9)

K
Keyboard character - will be replaced by any character that can be typed using the computer keyboard

C Ascii all character - will be replaced by any ascii character excluding the null character (code 0) (see ASCII chart)

D
Ascii low character - will be replaced by any ascii character with code between 1 and 127 inclusive (see ASCII chart)

E Ascii high character - will be replaced by any ascii character with code greater than 127 (see ASCII chart)

? Punctuation character - will be replaced by one of the following punctuation characters: ~`!@#$%^&*()_+-={}|[]\:";'<>?,./

% Special character (Numeric and punctuation) - will be replaced by one of the following: ~!@#$%^&*()_+`1234567890-={}|[]\:";'<>?,./

X Hexadecimal character - will be replaced by one of the following characters: a-e, A-E, 0-9

S Alpha, Punctuation character - will be replaced by an alphabetic or punctuation character

V Vowel character - will be replaced by a vowel (AEIOUaeiou)

W Consonant character - will be replaced by a consonant (BCDFGHJKLMNPQRSTVWXYZbcdfghjklmnpqrstvwxyz)

*n
Repeat indicator - the preceding character will be repeated 'n' times

\
Literal indicator - Precede any of the above symbols by a backslash (\) so that the symbol will be treated as a literal and not be replaced, but copied into the password without conversion

others
All other characters not listed above are copied to the same position in the password without any conversion



Random-Length Masks

~ The tilde (~) character at the beginning of the mask indicates this is a random mask and must have 3 sections, in any order: 1 - Password length; 2 - Required character(s); 3 - Default character.

(min.max ) Password Length enclosed by parentheses () - Replace min with the minimum size of the password, and replace max with the maximum size, with a period (.) in between. The generator will choose a random password length between these two numbers, inclusive.

{c} or {c,c}, etc. One or more required character masks enclosed in curly braces {} - if more than one is entered, each character mask (c) must be separated by a comma (,). Each mask must be only one character in length. The generator will ensure that the password includes a character from each required mask's character set. There should be no more than min - 1 required characters.

[c] The default character mask that should be used for all positions in the password that don't include a required character. This mask will be used in (password length - # required characters) positions in the generated password. The positions for all characters are randomly chosen by the generator.



See below for some examples of random masks

Dictionary Masks

& The ampersand (&) character at the beginning of the mask indicates this is a dictionary mask and must have at least one section—for the Dictionary/Password length—followed by optional sections for prefix and suffix masks and substitutions. The passwords will not have an imposed character case (upper or lower) unless you follow the ampersand with upper- or lower-case mask symbols (e.g. &< or &>).

(Dict:min,max) Replace Dict with the name of the dictionary from which random entries will be chosen, followed by a colon (:) and the Password Length, all enclosed by parentheses (). For the length, replace min with the minimum size of the password, and replace max with the maximum size, with a comma (,) in between. The generator will choose a random password from the specified dictionary with a length between these two numbers, inclusive.

[P:pmask] Add this section to specify the mask for prefixes to be added to random dictionary words. Replace pmask with the prefix mask, preceded by P: and all surrounded in brackets.

[S:smask] Add this section to specify the mask for suffixes to be added to random dictionary words. Replace smask with the suffix mask, preceded by S: and all surrounded in brackets.

[R:subst-list] Add this section to specify replacements for characters in the random words taken from the dictionary. Replace subst-list with a list of substitutions of the form old|new, separated by commas (,), all preceded by R: and surrounded in brackets. For each substitution old|new, replace old with the character to replace and new with the character to replace it with.



See below for some examples of dictionary masks

Random Numbers
^X The caret (^) character at the beginning of the mask indicates this is a random number mask. Replace X with either D (for decimal) or H (for hexadecimal). There must be at least one section—for the statistical Distribution and its parameters—followed by a section for the number of decimal places (for non-integer distributions), and optional sections for prefix and suffix numbers.

(Dist:param-list) Replace Dist with the symbol for the satatistical distribution to satisfy. Replace params-list with the applicable parameters (such as shape, mean, upper limit, order, etc.), separated by commas (,) if there are two of them. If there are no parameters, as in Cauchy and Float, simply do (Dist:). The following symbols and parameters are defined:

B (Beta) - shape1, shape2 - both positive numbers
C (Cauchy) - none
S (ChiSquared) - freedom - positive
E (Erlang) - mean, order - both positive
X (Exponential) - mean - positive
F (F) - freedom1, freedom2 - both positive
L (Float) - none
G (Gamma) - shape, scale - both positive
I (Integer) - upper limit - positive
R (Integer Range) - lower limit, upper limit - any numbers such that upper limit > lower limit
O (LogNormal) - mean - any number, std deviation - positive
N (Normal) - mean - any number, std deviation - positive
T (T) - freedom - positive
W (Weibull) - shape, scale - both positive
All this should be enclosed in parentheses ().

[D:precision] For non-integer distributions, add this section, replacing precision with the maximum number of digits you wish to have displayed to the right of the decimal (or hexadecimal) point, preceded with a D: and all surrounded in brackets.

[P:pmask] Add this section to specify a literal (non-mask) prefix to be added to random numbers. Replace pmask with the prefix, preceded by P: and all surrounded in brackets.

[S:smask] Add this section to specify a literal (non-mask) suffix to be added to random numbers. Replace smask with the suffix, preceded by S: and all surrounded in brackets.

TH Append TH to the end of the mask if you want thousands separators to appear in you random numbers.



louise56
Messages: 5
Enregistré le: 08 Aoû 2008, 16:57

part2 exemple

par louise56 » 08 Aoû 2008, 17:15

See below for some examples of dictionary masks

Examples
Mask
Password
Description

####
3409
4 digit number - can be used for PIN's

#*4
3926
Same as above - shortcut for repeating the same masking character 'n' times

ijfz-eolz-qkbr
Three word alpha - notice how the dashes have been copied literally - entire password will be lowercase because of the leading '<'

NNNN-NNNN-NNNN
0480-a4Gk-j1mu
Three word alphanumeric

\AB\CNNNNN
ABCHM8If
'A' and 'C' have been literalized using the backslash so that they are copied without conversion

ABCNNNNN
TB5xAF3Y
What happens without backslash before 'A' and 'C' characters

N*8
6NxAy8bJ
Good one for systems that require passwords with maximum 8 characters

C*12
s,j(TB^4
Very cryptic - funny-looking characters are outside the alphanumeric range - such characters cannot be typed using the keyboard except on some systems by holding down the Alt key while entering the ascii number into the numeric keypad

K*18
N5YE0>jjgS#PVg`>Vb
Long, but something that can be typed using the keyboard

###987###
233987685
Notice how '987' is copied literally

NNN\\AAA
zSk\Qfv
Two backslashes together generate a literal backslash

NNN-<>AAA
ig-UDL-pFh
See how the case is changed from lower to upper to none

AK?K#NNN
pS$A0Q5R
Example using a random punctuation character

oxazoek
Use of vowels and consonants to generate a pronounceable password.

~(7.10){#,?}[A]
LAal!2Cqo
Random length and positioning. Password will be between 7 and 10 characters long and will contain a numeric and a punctuation character in any position. All other characters will be upper- or lower- case alphabetic.

~<(6.12){%}[A]
y2ockjwl
Another random mask example. Password will be between 6 and 12 characters. One special character is required and all others will be lowercase alphabetic characters.

^D(L:)[D:12]
0.637981509621
Random number between 0 and 1 with no more than 12 significant digits.

^D(N:50,12)[D:11]
45.85790472562
Random number from a Normal distribution (Bell curve) with a mean of 50 and a standard deviation of 12, and no more than 11 fractional digits.

^D(R:80000,700000)TH
688,623
Random whole number between 80,000 and 700,000 with thousands separators (a comma here, but generally dependent on your system's regional setttings).

^D(X:946)[D:6][P:aaa][S:zzz]TH
aaa1,525.364456zzz
Random number from an Exponential distribution preceded by aaa and followed by zzz, having a mean of 946, thousands separators, and no more than 6 fractional digits.

&<(General:0,10)
stinkbugs
Random 10-character-or-less word from the "General" dictionary, forced to lower-case.

&(General:3,15)[R:O|0,L|1,S|5]
a5tr0n0my
Useful sort of mask for passwords requiring mixed letters and numbers, but also easy to remember. Here, letter O's are changed to zeros, L's to ones, and S's to fives, so that it's still readable.

&(General:3,15)[P:quasi][S:ism]
quasilacklusterism
Made-up but plausible-sounding words beginning with "quasi" and ending with "ism".

Merci à toutes celles et ceux qui éssayeront :we:

Clembou
Membre Complexe
Messages: 2732
Enregistré le: 03 Aoû 2006, 12:00

par Clembou » 08 Aoû 2008, 17:17

Ouah :doh: :doh: Faut déjà être très motivé pour lire tout ça (surtout le passage en anglais). Est-ce que tu peux résumer ce qu'il faut faire ??? :id:

guigui51250
Membre Complexe
Messages: 2727
Enregistré le: 30 Déc 2007, 12:00

par guigui51250 » 08 Aoû 2008, 17:18

euh, ça va pas etre possible... je ne sais pas lire lol c'est trop long

Flodelarab
Membre Légendaire
Messages: 6574
Enregistré le: 29 Juil 2006, 15:04

par Flodelarab » 08 Aoû 2008, 17:30

Tant que ya pas de questions, ce fil de discussion va vite aller aux oubliettes.

louise56
Messages: 5
Enregistré le: 08 Aoû 2008, 16:57

par louise56 » 08 Aoû 2008, 17:38

bein le résumé est dans la premiere partie:

Le logiciel fonctionne avec des mask, il faut correctement mettre les caractères pour que le logiciel exécute la génération des pass.
Cat Stevens est très parano il veut utiliser une clé comprenant 23 caractères, de a à z (en minuscule) + 1 chiffre placé aléatoirement dans chaque pass générés.
Exemple
aozejjhsdqjnbfjsorlesc4
7akxrtenksuhelotyfzuavs
akxtgernsjuyev4aistynei

Le soucis c'est que c'est en anglais, ducoup à chaque fois que je le tente, le logiciel ne comprend pas mon mask, sans compter tous les caractères différents. :mur:

Oui c'est sur la il faut être super motivé :we:

en gros le plus simple est déja, de bien regarder la structure des exemples et se reporter à la première partie du post comprenant la syntaxe qui donne ca ou ca...

Donc le but est de pouvoir de générer des clés comme dans l'éxemple en réalisant un mask

Sorcier FXK
Membre Naturel
Messages: 10
Enregistré le: 03 Aoû 2008, 19:46

par Sorcier FXK » 08 Aoû 2008, 17:50

Ce que veut Louise56 c'est l'equation du mask... tout simplement.

louise56
Messages: 5
Enregistré le: 08 Aoû 2008, 16:57

par louise56 » 08 Aoû 2008, 17:51

c'est 23 caractères comprenant 22 lettres de l'alphabet, + 1 chiffre placé aléatoirement, ce qui donne une clé de 23 caractères.

voila, je pense que c'était pas clair en faite le truc avant

miikou
Membre Rationnel
Messages: 642
Enregistré le: 07 Juil 2008, 19:38

par miikou » 08 Aoû 2008, 18:00

tu peux poser une question claire ?

Sorcier FXK
Membre Naturel
Messages: 10
Enregistré le: 03 Aoû 2008, 19:46

par Sorcier FXK » 08 Aoû 2008, 18:16

Un mask est une equation de commande propre a un logiciel donnée. Ca permet de générer des choses de facon aléatoire et automatiser, comme dans cet exemple des mots de passe.

Pour bien comprendre comment faire l'equation de commande (dite mask) ba faut se taper le texte en anglais.

Exemple: X*26 génére de nombres aléatoires de 26 caracteres de long.

La Louise56 veut faire des choses de se genre :

aozejjhsdqjnbfjsorlesc4
7akxrtenksuhelotyfzuavs
akxtgernsjuyev4aistynei

Ca question est donc quel est le mask a donner au logiciel pour y arriver?

miikou
Membre Rationnel
Messages: 642
Enregistré le: 07 Juil 2008, 19:38

par miikou » 08 Aoû 2008, 18:19

a d'accord merci pour l'explication ;) le fichier d'aide est long a lire et de plus en anglais .. bonne chance aux courageux

abcd22
Membre Complexe
Messages: 2426
Enregistré le: 13 Jan 2006, 15:36

par abcd22 » 08 Aoû 2008, 18:42

Bonjour,
louise56 a écrit:~<(6.12){%}[A]
y2ockjwl
Another random mask example. Password will be between 6 and 12 characters. One special character is required and all others will be lowercase alphabetic characters.

C'est presque ce qu'on veut ça, non ? Un tour dans la doc, et :
~<(23,23){#}[A]
devrait correspondre à des mots de passe de 23 caractères, dont un est un chiffre et les autres des lettres minuscules.

louise56
Messages: 5
Enregistré le: 08 Aoû 2008, 16:57

par louise56 » 08 Aoû 2008, 18:55

abcd22 a écrit:Bonjour,

C'est presque ce qu'on veut ça, non ? Un tour dans la doc, et :
~<(23,23){#}[A]
devrait correspondre à des mots de passe de 23 caractères, dont un est un chiffre et les autres des lettres minuscules.


:doh: mais comment il a trouvé aussi rapidement

bein oui c'est ca :id:
juste la virgule qui doit être remplacé par un point.

bein félicitation, et merci beaucoup je m'attendais pas à cela :we:

Sorcier FXK
Membre Naturel
Messages: 10
Enregistré le: 03 Aoû 2008, 19:46

par Sorcier FXK » 08 Aoû 2008, 19:35

Meme pas la virgule est bonne !
Thx une fois de plus !

Sorcier FXK
Membre Naturel
Messages: 10
Enregistré le: 03 Aoû 2008, 19:46

par Sorcier FXK » 09 Aoû 2008, 03:20

Bravo Louise56 !!! Moi je dit bravo !

C'est pas 23 caracteres de long mais 20... Bravo ! Pour un peu on se couvrai de honte !!! Ca change rien a la forme de l'equation mais bon quand meme.

 

Retourner vers ⚔ Défis et énigmes

Qui est en ligne

Utilisateurs parcourant ce forum : Aucun utilisateur enregistré et 2 invités

Tu pars déja ?



Fais toi aider gratuitement sur Maths-forum !

Créé un compte en 1 minute et pose ta question dans le forum ;-)
Inscription gratuite

Identification

Pas encore inscrit ?

Ou identifiez-vous :

Inscription gratuite