1
//对字符串加密
export function decodeStr(code) {
  let c = String.fromCharCode(code.charCodeAt(0) + code.length);
  for (let i = 1, len = code.length; i < len; i++) {
    c += String.fromCharCode(code.charCodeAt(i) + code.charCodeAt(i - 1));
  }
  return decodeURI(c);
}

//字符串进行解密
export function uncodeStr(code) {
  code = decodeURIComponent(code);
  let c = String.fromCharCode(code.charCodeAt(0) - code.length);
  for (let i = 1, len = code.length; i < len; i++) {
    c += String.fromCharCode(code.charCodeAt(i) - c.charCodeAt(i - 1));
  }
  return c;
}

起风了
120 声望35 粉丝

北冥有鱼,其名为鲲。鲲之大,不知其几千里也;化而为鸟,其名为鹏。鹏之背,不知其几千里也;怒而飞,其翼若垂天之云。是鸟也,海运则将徙于南冥。南冥者,天池也。