implement simple encryption