Information Leakage in Encrypted Systems Through an Algorithmic Lens