_getAvailableAlgorithms () {
    let algorithms = [
      'SHA-1',
      'SHA-256',
      'SHA-384',
      'SHA-512'
    ]

    if (Browser.match('ie', 11)) {
      // only IE11 does not support SHA-512
      algorithms.splice(3, 1)
    }

    if (Browser.match('ie', 11) || Browser.match('edge')) {
      // SHA-1 does not work in ie and edge despite being documented differently
      algorithms.splice(0, 1)
    }

    return algorithms
  }
/**
   * Returns digest algorithms available for the current browser.
   * @return {string[]}
   */
Returns digest algorithms available for the current browser.
@return {string[]}
Returns digest algorithms available for the current browser . @return { string [] }
_getAvailableAlgorithms () {
    let algorithms = [
      'SHA-1',
      'SHA-256',
      'SHA-384',
      'SHA-512'
    ]
    if (Browser.match('ie', 11)) {
      algorithms.splice(3, 1)
    }
    if (Browser.match('ie', 11) || Browser.match('edge')) {
      algorithms.splice(0, 1)
    }
    return algorithms
  }
_getAvailableAlgorithms ( ) { let algorithms = [ 'SHA-1' , 'SHA-256' , 'SHA-384' , 'SHA-512' ] if ( Browser . match ( 'ie' , 11 ) ) { algorithms . splice ( 3 , 1 ) } if ( Browser . match ( 'ie' , 11 ) || Browser . match ( 'edge' ) ) { algorithms . splice ( 0 , 1 ) } return algorithms }
Returns digest algorithms available for the current browser.
Returns digest algorithms available for the current browser .
// only IE11 does not support SHA-512 // SHA-1 does not work in ie and edge despite being documented differently