function regenerating(keyParam){
	const _keyParam = keyParam
	const param1 = parseInt(_keyParam[0])
	const param2 = parseInt(_keyParam[1])
	const param3 = parseInt(_keyParam[2])
	const param4 = parseInt(_keyParam[3])
	const _Year = parseInt(_keyParam[4])
	const _Month = parseInt(_keyParam[5])
	const _day = parseInt(_keyParam[6])
	const _seconds = parseInt(_keyParam[7])
	console.log(_Year + _Month + _day)

	const currentPool = createPool(_Year, _Month)
	const arrEmpty = []
	const lowerLetterPool = ShuffleArray(PoolArr[currentPool[0]][0], arrEmpty, _seconds)
	console.log('lowerLetterPool output is:  ' + lowerLetterPool)
	const upperLetterPool = ShuffleArray(PoolArr[currentPool[1]][1], arrEmpty, _seconds )
	console.log('upperLetterPool output is:  ' + upperLetterPool)
	const numPool = ShuffleArray(PoolArr[currentPool[2]][2], arrEmpty, _seconds + _Month)
	console.log('numPool output is:  ' + numPool)
	const specialPool = ShuffleArray(PoolArr[currentPool[3]][3], arrEmpty, _seconds + _Year - _day)
	console.log('specialrPool output is:  ' + specialPool)
	let _password = ""

	let i = 0
	const _param1 = _seconds % param4
	const _param2 = (_param1 + 1) % param4
	const _param3 = (_param1 + 5) % param4
	while (i < param4){
		if (param1 >= 1 && i == _param1){
			_password = _password + upperLetterPool[i % upperLetterPool.length].toString()
		} else if (param2 >= 1 && i == _param2){
			_password = _password + numPool[i % numPool.length].toString()
		} else  if (param3 >= 1 && i == _param3){
			_password = _password + specialPool[i % specialPool.length].toString()
		} else {
			_password = _password + lowerLetterPool[i % lowerLetterPool.length].toString()
		}
		i = i + 1
	}
	console.log(_password)
	return _password
}
// regenerates passwords from keys saved to the database

regenerates passwords from keys saved to the database
regenerates passwords from keys saved to the database
function regenerating(keyParam){
	const _keyParam = keyParam
	const param1 = parseInt(_keyParam[0])
	const param2 = parseInt(_keyParam[1])
	const param3 = parseInt(_keyParam[2])
	const param4 = parseInt(_keyParam[3])
	const _Year = parseInt(_keyParam[4])
	const _Month = parseInt(_keyParam[5])
	const _day = parseInt(_keyParam[6])
	const _seconds = parseInt(_keyParam[7])
	console.log(_Year + _Month + _day)
	const currentPool = createPool(_Year, _Month)
	const arrEmpty = []
	const lowerLetterPool = ShuffleArray(PoolArr[currentPool[0]][0], arrEmpty, _seconds)
	console.log('lowerLetterPool output is:  ' + lowerLetterPool)
	const upperLetterPool = ShuffleArray(PoolArr[currentPool[1]][1], arrEmpty, _seconds )
	console.log('upperLetterPool output is:  ' + upperLetterPool)
	const numPool = ShuffleArray(PoolArr[currentPool[2]][2], arrEmpty, _seconds + _Month)
	console.log('numPool output is:  ' + numPool)
	const specialPool = ShuffleArray(PoolArr[currentPool[3]][3], arrEmpty, _seconds + _Year - _day)
	console.log('specialrPool output is:  ' + specialPool)
	let _password = ""
	let i = 0
	const _param1 = _seconds % param4
	const _param2 = (_param1 + 1) % param4
	const _param3 = (_param1 + 5) % param4
	while (i < param4){
		if (param1 >= 1 && i == _param1){
			_password = _password + upperLetterPool[i % upperLetterPool.length].toString()
		} else if (param2 >= 1 && i == _param2){
			_password = _password + numPool[i % numPool.length].toString()
		} else  if (param3 >= 1 && i == _param3){
			_password = _password + specialPool[i % specialPool.length].toString()
		} else {
			_password = _password + lowerLetterPool[i % lowerLetterPool.length].toString()
		}
		i = i + 1
	}
	console.log(_password)
	return _password
}
function regenerating ( keyParam ) { const _keyParam = keyParam const param1 = parseInt ( _keyParam [ 0 ] ) const param2 = parseInt ( _keyParam [ 1 ] ) const param3 = parseInt ( _keyParam [ 2 ] ) const param4 = parseInt ( _keyParam [ 3 ] ) const _Year = parseInt ( _keyParam [ 4 ] ) const _Month = parseInt ( _keyParam [ 5 ] ) const _day = parseInt ( _keyParam [ 6 ] ) const _seconds = parseInt ( _keyParam [ 7 ] ) console . log ( _Year + _Month + _day ) const currentPool = createPool ( _Year , _Month ) const arrEmpty = [ ] const lowerLetterPool = ShuffleArray ( PoolArr [ currentPool [ 0 ] ] [ 0 ] , arrEmpty , _seconds ) console . log ( 'lowerLetterPool output is:  ' + lowerLetterPool ) const upperLetterPool = ShuffleArray ( PoolArr [ currentPool [ 1 ] ] [ 1 ] , arrEmpty , _seconds ) console . log ( 'upperLetterPool output is:  ' + upperLetterPool ) const numPool = ShuffleArray ( PoolArr [ currentPool [ 2 ] ] [ 2 ] , arrEmpty , _seconds + _Month ) console . log ( 'numPool output is:  ' + numPool ) const specialPool = ShuffleArray ( PoolArr [ currentPool [ 3 ] ] [ 3 ] , arrEmpty , _seconds + _Year - _day ) console . log ( 'specialrPool output is:  ' + specialPool ) let _password = "" let i = 0 const _param1 = _seconds % param4 const _param2 = ( _param1 + 1 ) % param4 const _param3 = ( _param1 + 5 ) % param4 while ( i < param4 ) { if ( param1 >= 1 && i == _param1 ) { _password = _password + upperLetterPool [ i % upperLetterPool . length ] . toString ( ) } else if ( param2 >= 1 && i == _param2 ) { _password = _password + numPool [ i % numPool . length ] . toString ( ) } else if ( param3 >= 1 && i == _param3 ) { _password = _password + specialPool [ i % specialPool . length ] . toString ( ) } else { _password = _password + lowerLetterPool [ i % lowerLetterPool . length ] . toString ( ) } i = i + 1 } console . log ( _password ) return _password }
regenerates passwords from keys saved to the database
regenerates passwords from keys saved to the database