doing encrypted part