Updated HideAKey and separated Encrypt from Encoder.