Fixed CBC implementation, fixed a bug in lock/unlock logic, changed sha1.hash to return binary strings, improves repeaded hashings, changed default count to 4096.