Encode hidden value