Random number generator


q8yas

Уважаемый пользователь
Форумчанин
Регистрация
17.11.2023
Сообщения
45
Репутация
15
hello every one

in here :

the creater say : Given an array of size 10
Random number generator initializer at 0x1337 (seed).
The password is the result of the sum of all generated random numbers in the array as a hash from the whirlpool algorithm in lowercase

i try everything also i become with alot password but no one work

can anyone give me the right wahy pls
 

X-Shar

:)
Администрация
Регистрация
03.06.2012
Сообщения
6 094
Репутация
8 213
Вот скрипт на Python, который выполняет требуемые действия:

Код:
import random as r
import hashlib

SIZE = 10
rnd_seed = int(0x1337)
r.seed(a=rnd_seed)
array = [r.randint(1, 10) for _ in range(SIZE)]
result = sum(array)

whirlpool_hash = hashlib.new('whirlpool', str(result).encode()).hexdigest()

Созданный массив из 10 случайных чисел от 1 до 10: [1, 2, 3, 2, 1, 8, 8, 2, 2, 2].

Сумма чисел в массиве: 31.

Whirlpool хэш этой суммы в lowercase: 5350b5db7c67126b3c910cbf2044416bca5aa4495fe37451bd0ae35f841dc33a7e3a09596b95fe1fcaed190a232756b082652e4f0c0fcf333c1990ba05c7febf.

Длина хэша составляет 128 символов.

Кстати Whirlpool хэш имеет длину 128 символов, а не 206 символов.)

Короче пароль:


Вам нужно авторизоваться, чтобы просмотреть содержимое.
 

X-Shar

:)
Администрация
Регистрация
03.06.2012
Сообщения
6 094
Репутация
8 213
А т.к. пароль может-быть не более 127 символов, то даже так.)

Вам нужно авторизоваться, чтобы просмотреть содержимое.
 

q8yas

Уважаемый пользователь
Форумчанин
Регистрация
17.11.2023
Сообщения
45
Репутация
15
Here is a Python script that does the required actions:

Код:
import random as r
import hashlib

SIZE = 10
rnd_seed = int(0x1337)
r.seed(a=rnd_seed)
array = [r.randint(1, 10) for _ in range(SIZE)]
result = sum(array)

whirlpool_hash = hashlib.new('whirlpool', str(result).encode()).hexdigest()

Created array of 10 random numbers from 1 to 10: [1, 2, 3, 2, 1, 8, 8, 2, 2, 2].

Sum of numbers in the array: 31.

Whirlpool hash of this amount in lowercase: 5350b5db7c67126b3c910cbf2044416bca5aa4495fe37451bd0ae35f841dc33a7e3a09596b95fe1fcaed190a232756b082652e4f0c0fcf333c19 90ba05c7febf.

The hash length is 128 characters.

By the way, the Whirlpool hash is 128 characters long, not 206 characters.)

Brief password:


Hidden content
And because The password can be no more than 127 characters, even so.)

Hidden content
hi boss

i swear i solved with c but first time i know password must 127 char , my mac put all password don't cut , in windows work

big thank you :************
 
Верх Низ