Refectoring; corrected IOException processing; corrected crypt-key generation.