implemented ciphered key auth

See e-mail.