ブックマーク / sqids.org (1)

  • Sqids (formerly Hashids) · Generate Short Unique IDs

    What is Sqids? Sqids (pronounced "squids") is an open-source library that lets you generate short unique identifiers from numbers. These IDs are URL-safe, can encode several numbers, and do not contain common profanity words. Read more . This is what they look like: Use Cases The main use of Sqids is purely visual. If you'd like to use IDs instead of numbers in your project, Sqids could be a good

    tmatsuu
    tmatsuu 2023/12/03
    YouTubeの動画ごとに割り振られているような、ランダムな文字列に見えるIDを生成するlibrary。複数言語で実装あり。ハッシュではないので衝突しない。複数の数字を含むIDを生成できるの面白いな
  • 1