Coder Social home page Coder Social logo

Comments (3)

mengzonefire avatar mengzonefire commented on July 18, 2024

这种链接里的md5加密过了, 网页工具暂时还不支持解密, 下版本会加入支持

from baidupan-rapidupload.

noname01t1 avatar noname01t1 commented on July 18, 2024

这种链接里的md5加密过了, 网页工具暂时还不支持解密, 下版本会加入支持

问一下大佬这种md5怎么解密?与普通的md5有什么区别 谢谢

from baidupan-rapidupload.

mengzonefire avatar mengzonefire commented on July 18, 2024

已更新1.4版本, 支持此种链接的转存了

  1. 与普通的md5的区别: 加密md5第10位为g-z, 普通md5为0-9或a-f

  2. 如何解密:

function decryptMd5(md5) {
  if (
    !(
      (parseInt(md5[9]) >= 0 && parseInt(md5[9]) <= 9) ||
      (md5[9] >= "a" && md5[9] <= "f")
    )
  )
    return decrypt(md5);
  else return md5;

  function decrypt(encryptMd5) {
    let key = (encryptMd5[9].charCodeAt(0) - "g".charCodeAt(0)).toString(16);
    let key2 = encryptMd5.slice(0, 9) + key + encryptMd5.slice(10);
    let key3 = "";
    for (let a = 0; a < key2.length; a++)
      key3 += (parseInt(key2[a], 16) ^ (15 & a)).toString(16);
    let md5 =
      key3.slice(8, 16) +
      key3.slice(0, 8) +
      key3.slice(24, 32) +
      key3.slice(16, 24);
    return md5;
  }
}

from baidupan-rapidupload.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.