Comments (11)
Hi, not at this point but should be possible to add. I will have a look.
On 21 nov 2014, at 11:33, nripendra [email protected] wrote:
Hi,
I was trying to generate hashid for long data type but it doesn't seem to have support?
—
Reply to this email directly or view it on GitHub.
from hashids.net.
+1
from hashids.net.
This is a bit tricky, I would either have to always return a long
from the Decode
function or provide a
DecodeInt64
to not make a breaking change, I say that the latter is needed.
from hashids.net.
Yes, I think it will be important to have backward compatibility. You can also create new class if you think that will be cleaner.
from hashids.net.
started implementing in https://github.com/ullmark/hashids.net/tree/long-support will close this issue when done.
from hashids.net.
@ullmark this is awesome! I was coming here to see if there was any plans for long support and it's already underway. Let me know if there's anything I can do to help finalising it
from hashids.net.
Hi guys, I just want to update the status.
I have updated the code to support long, and most of the tests are green, however I when randomly added VERY large numbers and trying them back and forth I get a red test. Trying to track down the culprit.
@RodH257 You are very welcome to help out, I'll shoot you a note when I've pushed everything I have locally for the long-support.
from hashids.net.
👍 for long support.
from hashids.net.
I have pushed my work in progress for the long support to my feature branch, some bug fixing to do, but we have the new functions EncodeLong
and DecodeLong
.
I also added an interface and some other bits.
from hashids.net.
found the issue where I threw away some data. The long support is good to go, will send out a new package on nuget during the day.
from hashids.net.
Pushed to nuget with version 1.1.0
from hashids.net.
Related Issues (20)
- how to Creates short unique ids from integers. (only positive numbers & zero) HOT 1
- Bug on long encoding with 16 alphabet chars HOT 8
- Using multiple options for encoding/decoding HOT 1
- Attempting to Decode short strings results in incorrect exceptions being produced HOT 7
- Hashids not generating with proper minhashlength HOT 1
- HashIds not working after adding custom Output formatter HOT 2
- How do I get HashIDs of a specific length? HOT 1
- How use id with Guid/UUID/Sequential Guid HOT 1
- Is there a guarantee of encoded sequence uniqueness with differing salts? HOT 4
- Insufficient Variation In Generated HashIds HOT 1
- Document the effective character limit of the salt HOT 5
- Decoding input smaller than minHashLength unhandled exceptions are thrown HOT 4
- Json support? HOT 3
- Regarding HashidsNet HOT 1
- Website seems down HOT 2
- Valid use-case for library? HOT 1
- Is this lib still being maintained? HOT 2
- Decode null string thows NullReferenceException HOT 1
- Same id generated for different integers HOT 3
- Same hash different integers HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hashids.net.