fwrq41251
V2EX  ›  问与答

问个 encode 的问题

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

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

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