Change secret key SHA1 calculation interface

Some crypto libraries (in particular, BCrypt on Windows Vista and later) neither expose secret key nor allow it to be hashed separately of other data.