V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
itommy
V2EX  ›  问与答

http://instagram.com/p/LddVD4ksAx 后面这一串字符是怎么生成的

  •  
  •   itommy · Jul 14, 2012 · 4199 views
    This topic created in 5035 days ago, the information mentioned may be changed or developed.
    如题 “LddVD4ksAx” 是怎么生成出来的?

    没有google到相关的,可能是keyword不对吧

    新浪阿 人人阿都有的


    有谁了解的吗?

    先谢谢咯
    5 replies    1970-01-01 08:00:00 +08:00
    qdvictory
        1
    qdvictory  
       Jul 14, 2012
    很多种方法吧,只是把一个不固定长度的字符串变成固定长度的。
    貌似base64,md5就可以,不过我对这方面不太熟。。
    xlmo
        2
    xlmo  
       Jul 14, 2012
    应该是类似主键的东东。生成只要保证唯一就行了,各家算法都不同吧。
    luin
        3
    luin  
       Jul 14, 2012
    hash, 进制转换都有可能
    BlueCoast
        4
    BlueCoast  
       Jul 14, 2012   ❤️ 2
    一般来说,这种需要尽可能段的唯一标志都会采用序列,没必要再浪费计算资源去计算什么。
    类似0,10,100,1000,10000这种序列。
    只不过并不局限于0~9的数字,而加入了a-z和A-Z的,你可以认为是62进制数。
    mrluanma
        5
    mrluanma  
       Jan 5, 2013   ❤️ 1
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   990 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 19:46 · PVG 03:46 · LAX 12:46 · JFK 15:46
    ♥ Do have faith in what you're doing.