Comments (4)
That is correct @sg-modlab. Given the same input, maskNumbers
should always return the same output. However, if you want to dig deeper into this (and verify this contract), you should really check out the underlying Hashids library that maskNumbers
is simply a wrapper for.
from craft-cryptographer.
Just FYI, there are three parameters passed on to the Hashids constructor:
craft-cryptographer/src/services/Cryptographer.php
Lines 33 to 43 in 63ac9cb
- Your security key, used as the salt
- Minimum length, or padding
- The alphabet
As long as all three of them remain the same, the output should be permanent.
from craft-cryptographer.
And it is my understanding the plugin uses Craft's security key, correct. Only should add one to the config if this was used previously on a Craft 2 site.
from craft-cryptographer.
from craft-cryptographer.
Related Issues (9)
- openssl_decrypt error : “failed to base64 decode the input” HOT 1
- Can't install with Craft CMS 3.2.6 HOT 1
- Support version 4.x of hashids
- New tag with the v4 hashids change? HOT 2
- Issue with mask numbers for decimal places HOT 1
- Craft 4 compatibility HOT 2
- Using the plugin in config files
- Any updates for Craftcms 5? 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 craft-cryptographer.