a simple text encryption class