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))
Published at
2023-05-29 08:34:05Event JSON
{
"id": "15971e35f97a43bc2402798b6a782fe872f09a82814b855b66ff8d69ed589370",
"pubkey": "bbd4c4031d045b1c15a50a40d74740da86c87f364a116a8f02dabb9ebe5ee502",
"created_at": 1685349245,
"kind": 1,
"tags": [
[
"r",
"math.log2"
],
[
"r",
"https://nostr.build/i/d5c73712362a0421380539057249b33efe4bc0bc6466981c26c8198c1f002de3.jpg"
]
],
"content": "ENTROPY WITH PYTHON\n\nimport math\n\ndef entropy(password):\n char_set = set(password)\n char_set_size = len(char_set)\n password_size = len(password)\n entropy = math.log2(char_set_size ** password_size)\n return entropy\n\npassword = input(\"PASTE YOUR PASSWORD HERE:\")\nprint(entropy(password))\n\nhttps://nostr.build/i/d5c73712362a0421380539057249b33efe4bc0bc6466981c26c8198c1f002de3.jpg",
"sig": "c32dbe32ec4be95b3c267a10f586cada0f4ed3def7cc2ceb219531f9680db0ff31a4ce478f44676044c233f7e7a153ffd31cb61cecbccce6a6a529f619cb80b0"
}