Skip to content

Instantly share code, notes, and snippets.

View jonDel's full-sized avatar

יוֹנָתָן jonDel

  • Porto Alegre, Santa Maria
View GitHub Profile
@jonDel
jonDel / openldap_passwd.py
Last active May 3, 2018 19:39
Generate and check openldap sha1 passwords
import hashlib
import os
import sys
import base64
def make_pwd(password):
"""
Generate salted password.
"""
salt = os.urandom(4)