lib/eet.js
function generateBKP (pkp) {
  const buffer = new Buffer(pkp, 'base64')
  const hash = crypto.createHash('sha1')
  hash.update(buffer)
  const sha1str = hash.digest('hex').toUpperCase()
  return sha1str.match(/(.{1,8})/g).join('-')
}
function generateBKP (pkp) {
  const buffer = new Buffer(pkp, 'base64')
  const hash = crypto.createHash('sha1')
  hash.update(buffer)
  const sha1str = hash.digest('hex').toUpperCase()
  return sha1str.match(/(.{1,8})/g).join('-')
}
function generateBKP ( pkp ) { const buffer = new Buffer ( pkp , 'base64' ) const hash = crypto . createHash ( 'sha1' ) hash . update ( buffer ) const sha1str = hash . digest ( 'hex' ) . toUpperCase ( ) return sha1str . match ( / (.{1,8}) / g ) . join ( '-' ) }
Vygeneruje bezpecnostni kod poplatnika.

@see http://www.etrzby.cz/assets/cs/prilohy/EET_popis_rozhrani_v3.1.1.pdf (sekce 4.2)
Vygeneruje bezpecnostni kod poplatnika .