Set session encryption key.
Added authentication.