Modified generate-secret-key with DES3 to accept 8 byte key.
Clean up code a bit.