hashids
hashids copied to clipboard
Hashids, ported for Swift (http://www.hashids.org)
Today this library is unsafe. ```swift let hashOfMaxInt64 = "jvNx4BjM5KYjv" // untrusted input let hashids = Hashids(salt: "this is my salt") let values = hashids.decode64(hashOfMaxInt64) // 💥 Crash ``` A...
[The following code](https://github.com/gh123man/hashids/blob/master/Tests/HashidsTests/HashidsTests.swift#L192) will crash. ```swift let hashOfMaxInt64 = "jvNx4BjM5KYjv" // untrusted input let hashids = Hashids(salt: "this is my salt") let values = hashids.decode64(hashOfMaxInt64) // 💥 Crash ``` A...
Will you add new encodeHex/decodeHex functions? In JS version it's supported..
Would be awesome if we could import this into our projects using Swift PM instead of cocoapods.
Adde SPM support via Package.swift Removed Tests.xcodeproj now you can test with just `swift test` to generate xcodeproject for a library use `swift package generate-xcodeproj` Updated Podspec source but not...
## Description Added support for the SPM by adding a Swift package manifest file.