Create alpha-only hash

I see that we can create hash using frappe.generate_hash().
But the hash generated is alphanumeric.
Is there any way or parameter to pass for generating alpha-only hash ?


Even Though, the inbuilt function doesn’t support this, you can extend it with the below snippet:

import re, frappe
def generate_alpha_hash(txt=None, length=None):
    return re.sub(r'\d', lambda m: 'abcdefghij'[int(], frappe.generate_hash(txt, length))