code: func DecodePassword(pwd string) ([]byte, error) {
  	x, err := hex.DecodeString(pwd)
  	if err != nil {
  		return nil, errors.Trace(err)
  	}
  	return x, nil
  }
docs: // DecodePassword converts hex string password to byte array.