Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2 Proposal #55

Open
3 tasks
0x3333 opened this issue Feb 28, 2018 · 17 comments
Open
3 tasks

V2 Proposal #55

0x3333 opened this issue Feb 28, 2018 · 17 comments
Assignees
Labels
Milestone

Comments

@0x3333
Copy link
Collaborator

0x3333 commented Feb 28, 2018

Version 2.0 Proposal

This issue will be a discussion point to exchange ideas about version 2.0.

Big picture

The community is urging for a more java idiom version, and the current version can't handle these changes, that's why I'm proposing a new version, incorporating all the needs from the community in a broad discussion.

What about v2?

The new version must be compatible with original implementation as much as it can, without sacrificing java idiom. We will discuss how it will be implemented and the design considerations will be made here.

@cazacugmihai Proposal

  • Use of char arrays and StringBuilder instead of Strings
  • Precompute and cache recurrent operations
  • Helper class (CharUtils) for working with char arrays

@iggymoran Proposal

  • [] Relax MAX_NUMBER restriction

@KangoV Proposal

  • [] BigInteger as input/output

Reference implementation PR #53.

@0x3333 0x3333 added this to the 2.0.0 milestone Feb 28, 2018
@0x3333 0x3333 self-assigned this Feb 28, 2018
@cazacugmihai
Copy link

We can include these points in the TODO list.

Also, the 2.0.0 branch can be started from this point.

@kmandeville
Copy link

Has this library gone dark? Haven't been any updates for about 6 months?

@0x3333
Copy link
Collaborator Author

0x3333 commented May 22, 2018

I'd would say it is stable... :)

As soon as I have some time, I'll work on 2.0.

@kmandeville
Copy link

:)

Yes, definitely stable! I was mainly wondering because of some issues I had been following to see if there were any updates or if there were going to be. It wasn't anything major. Just an edge case around ArrayIndexOutOfBoundsException being thrown. We can work around it though. Thanks!

@0x3333
Copy link
Collaborator Author

0x3333 commented May 23, 2018

Mind opening an issue for this ArrayIndexOutOfBoundsException?

@kmandeville
Copy link

kmandeville commented May 23, 2018 via email

@0x3333
Copy link
Collaborator Author

0x3333 commented May 23, 2018

It was issued... 1.0.3. Maybe this is another bug...

@KangoV
Copy link

KangoV commented Aug 3, 2018

Any chance of being able to accept BigInteger as input/output?

@eriknyk
Copy link

eriknyk commented May 1, 2020

what happened with v2? still not released...

@XhstormR
Copy link

XhstormR commented Jun 6, 2022

ping

@fanweixiao
Copy link
Member

@0x3333 seems busy. is there anyone interest in v2.0 implementation? @eriknyk @XhstormR

@eriknyk
Copy link

eriknyk commented Jun 7, 2022

@fanweixiao yes

@0x3333
Copy link
Collaborator Author

0x3333 commented Jun 7, 2022

Hi everyone. Sorry for the long delay, I'm quite busy here.

I believe a v2 is a must, I'll try to work it out next week. Any new requirements?

@fanweixiao fanweixiao pinned this issue Jun 8, 2022
@chenzhenjia
Copy link

@0x3333 Can it be merged?

@0x3333
Copy link
Collaborator Author

0x3333 commented Jun 14, 2024

I’m not working with hashids anymore. Take a look at https://github.com/sqids/sqids-java

@chenzhenjia
Copy link

I’m not working with hashids anymore. Take a look at https://github.com/sqids/sqids-java

hashids supports custom secret, which sqids cannot do

@rgmz
Copy link

rgmz commented Jun 15, 2024

I’m not working with hashids anymore. Take a look at https://github.com/sqids/sqids-java

hashids supports custom secret, which sqids cannot do

"Secret" or "salt" was a misnomer.

The salt parameter was used to shuffle the alphabet, and it was never meant to be associated with security or safety. Both Hashids and Sqids work similarly to the way decimal to hexadecimal conversion works but with a few adjustments. There is no encryption of any kind, so to avoid confusion, that parameter has been removed completely.

https://sqids.org/faq#salt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants