I'll just quote from OOO's readme.
You can bash any lock, provided that you meet certain criteria. You must first, with a weapon drawn, activate the container, as you normally would to open or lockpick them.
This cannot be done in sneak mode, as this would activate the standard lock-picking procedure. The drawn weapon may be any kind of melee weapon, i.e. not bows. You can bash with your fists too, although it will not be as effective as bashing with e.g. a two-handed hammer. When you activate a locked container with a weapon drawn, then the container will begin to glow. This tells you that it is targeted for bashing.
Then, you need to use special attacks (power attacks) on the container until the lock breaks.
The formula responsible for the damage calculations takes your Strength, skill, weapon type and lock difficulty into account. Every time you hit the container, a loud noise will be made, which could potentially alert guards or enemies of your nearby presence and mischief.
In addition, every time you hit a container your weapons will suffer slight wear. Once you hit the lock enough times, it will break and the container will open for you.