INNER CODE UNIT · Python

min_length

CYBERGEM777/HIDEAGEM · extras/ComfyUI/HIDEAGEM_NODES.py:290

    min_length = math.ceil(bits_of_entropy / entropy_per_char)
    
    # Generate the random password
    return ''.join(secrets.choice(base62_charset) for _ in range(min_length))


class HideAGem_AutoHide_RandomPassword:
    
    @classmethod
    def INPUT_TYPES(s):
        return {
            "required": {

                "gem_image": ("IMAGE",),

                "password_entropy": ("INT", {
                    "default": 512, 
                    "min": 256,  #Minimum value

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…