add cred encryption example, console config for build