function(password, count) {
    // Errors
    if(!password) throw new Error('Missing argument !');
    if(!count || count <= 0) throw new Error('Please provide a count number above 0');
    // Processing
    let data = password;
    console.time('sha3^n generation time');
    for (let i = 0; i < count; ++i) {
        data = CryptoJS.SHA3(data, {
            outputLength: 256
        });
    }
    console.timeEnd('sha3^n generation time');
    // Result
    return {
        'priv': CryptoJS.enc.Hex.stringify(data)
    };
}
function(password, count) {
    
    if(!password) throw new Error('Missing argument !');
    if(!count || count <= 0) throw new Error('Please provide a count number above 0');
    
    let data = password;
    console.time('sha3^n generation time');
    for (let i = 0; i < count; ++i) {
        data = CryptoJS.SHA3(data, {
            outputLength: 256
        });
    }
    console.timeEnd('sha3^n generation time');
    
    return {
        'priv': CryptoJS.enc.Hex.stringify(data)
    };
}
function ( password , count ) { // Errors if ( ! password ) throw new Error ( 'Missing argument !' ) ; if ( ! count || count <= 0 ) throw new Error ( 'Please provide a count number above 0' ) ; // Processing let data = password ; console . time ( 'sha3^n generation time' ) ; for ( let i = 0 ; i < count ; ++ i ) { data = CryptoJS . SHA3 ( data , { outputLength : 256 } ) ; } console . timeEnd ( 'sha3^n generation time' ) ; // Result return { 'priv' : CryptoJS . enc . Hex . stringify ( data ) } ; }
Derive a private key from a password using count iterations of SHA3-256

@param {string} password - A wallet password
@param {number} count - A number of iterations above 0

@return {object} - The derived private key
Derive a private key from a password using count iterations of SHA3 - 256