fwrq41251
V2EX  ›  问与答

问个 encode 的问题

  •  
  •   fwrq41251 · Feb 2, 2016 · 2163 views
    This topic created in 3814 days ago, the information mentioned may be changed or developed.

    现在需要 encode 一个字符串,不要太长,10 个字符左右,然后结果要作为 url 的一部分,有什么好的方案?

    2 replies    2016-02-02 22:37:31 +08:00
    jugelizi
        1
    jugelizi  
       Feb 2, 2016
    不就是 token 嘛
    yemoluo
        2
    yemoluo  
       Feb 2, 2016
    插入数据库 取自增 id 然后用新浪的那个 62 进制
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3185 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 12:17 · PVG 20:17 · LAX 05:17 · JFK 08:17
    ♥ Do have faith in what you're doing.