very basic encryption algorithm