README
"# seed-token" by Ex_Nar (npm:exnargithub)
What is seed-token ?
Its tring seeding a token which is like a hash. The only identify for more flexiable. It is using sha256 as generator and turn into target dictionary.
Installation
npm i @seed-token/seed-token
Usage
const seedToken = require('@seed-token/seed-token')
seedCode(encodeData = {} , dictionaryArray = [] )
const seedToken = require('@seed-token/seed-token')
const encodeData = {
identify:"abcd",
// seedLength is required
// seedLength default = 32
seedLength:60,
}
const dictionaryArray = [
"123456789",
"A",
"bcd",
];
// the coming dictionary order will be accord to
// "123456789Abcd"
console.log(seedToken(encodeData,dictionaryArray));
// sample for algo. v04
// 3872142b9b57833d5c2dd998c287988bd26A73b8A6845cb645683bc7d9b8
dictionaryArray default :
// default setting
dictionaryArray = [
"0123456789",
"ABCDEFGHIJKLMNOPQRSTUVWXYZ",
"abcdefghijklmnopqrstuvwxyz",
]
you can change the 'dictionaryArray' to any char you like in any order. (\n\t is supported | Although it is useless)
License
Licensed under MIT to all version lower than or equal to 1.0.0