Use sha256 for authentication instead of sha1

  * Add also a parameter in client.rb