def sha1_base64(value):
    return ruby_b64encode(hashlib.sha1(value.encode()).digest())
An implementation of Mixlib::Authentication::Digester.
dataset/ETHPy150Open coderanger/pychef/chef/auth.py/sha1_base64