ignore export function getAesCbcOutputLength ( inputByteLength ) { const cipherTextLength = ( Math . floor ( inputByteLength / 16 ) + 1 ) * 16 ; return cipherTextLength ; } param number export function getBase64OutputLength ( inputByteLength ) { const encodedLength = Math . ceil ( inputByteLength / 3 ) * 4 ; return encodedLength ; } ignore export function hashCode ( string ) { let hash = 0 ; if ( string . length === 0 ) return hash ; for ( let i = 0 ; i < string . length ; i ++ ) { const character = string . charCodeAt ( i ) ; hash = ( hash << 5 ) - hash + character ; hash &= hash ; } return hash & 0x7fffffff ; }