original encryption mechanism