Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

README.md 726 B

il y a 3 ans
1234567891011121314151617
  1. cipher-base
  2. ===
  3. [![Build Status](https://travis-ci.org/crypto-browserify/cipher-base.svg)](https://travis-ci.org/crypto-browserify/cipher-base)
  4. Abstract base class to inherit from if you want to create streams implementing
  5. the same api as node crypto streams.
  6. Requires you to implement 2 methods `_final` and `_update`. `_update` takes a
  7. buffer and should return a buffer, `_final` takes no arguments and should return
  8. a buffer.
  9. The constructor takes one argument and that is a string which if present switches
  10. it into hash mode, i.e. the object you get from crypto.createHash or
  11. crypto.createSign, this switches the name of the final method to be the string
  12. you passed instead of `final` and returns `this` from update.