add an encryption example in chapter 6 and a sample project