您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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.