encryption method implemented with 8 char key string