fwrq41251
V2EX  ›  问与答

问个 encode 的问题

  •  
  •   fwrq41251 · Feb 2, 2016 · 2375 views
    This topic created in 3946 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   ·   2869 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 05:10 · PVG 13:10 · LAX 21:10 · JFK 00:10
    ♥ Do have faith in what you're doing.