Encode secrets before computing signature.