almost fully working encryption plugin system