What is Nostr?
vagalam / Vаgalaɱ Smerdiakov
npub1h02…k3dk
2023-05-29 08:34:05

vagalam on Nostr: ENTROPY WITH PYTHON import math def entropy(password): char_set = set(password) ...

ENTROPY WITH PYTHON

import math

def entropy(password):
char_set = set(password)
char_set_size = len(char_set)
password_size = len(password)
entropy = math.log2(char_set_size ** password_size)
return entropy

password = input("PASTE YOUR PASSWORD HERE:")
print(entropy(password))

Author Public Key
npub1h02vgqcaq3d3c9d9pfqdw36qm2rvslekfggk4rczm2aea0j7u5pqjwk3dk