Medium lock