Skip to content

Collision-resistant ids optimized for horizontal scaling and binary search lookup performance. Based on ericelliott javascript library

License

Notifications You must be signed in to change notification settings

raphaelmansuy/cuid

Repository files navigation

cuid

CI Status Version License Platform FOSSA Status

Collision-resistant ids optimized for horizontal scaling and binary search lookup performance.

This is port in Swift 4.2 language of the javascript project https://github.com/ericelliott/cuid

returns a short random string with some collision-busting measures. Safe to use as HTML element ID's, and unique server-side record lookups.

let id = Cuid.generateId()

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

None

Installation

cuid is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'cuid'

Author

Raphael MANSUY, raphael.mansuy@gmail.com

License

cuid is available under the MIT license. See the LICENSE file for more info.

FOSSA Status

About

Collision-resistant ids optimized for horizontal scaling and binary search lookup performance. Based on ericelliott javascript library

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published