add basic encryption support