Calculate information entropy in bits for passwords and random variables. Essential tool for understanding password strength and information theory.