Move the crypto related methods to the Client abstract class, since they are the same for both GroupClient and FileClient.