Pass cipher as parameter instead protected member