Merge "Add hadamard utilities to encode keys"