Fully working encryption