working simple encryption