Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Crypto documentation fixes #1104

Closed
wants to merge 1 commit into from

2 participants

@mscdex

cipher.final description has the wrong encodings listed and a minor spelling error in the verifier.verify description.

@ry ry closed this pull request from a commit
@mscdex mscdex Crypto documentation fixes
Fixes #1104.
9b34726
@ry ry closed this in 9b34726
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 25, 2011
  1. @mscdex

    Crypto documentation fixes

    mscdex authored
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 doc/api/crypto.markdown
View
4 doc/api/crypto.markdown
@@ -93,7 +93,7 @@ Returns the enciphered contents, and can be called many times with new data as i
### cipher.final(output_encoding='binary')
-Returns any remaining enciphered contents, with `output_encoding` being one of: `'binary'`, `'ascii'` or `'utf8'`.
+Returns any remaining enciphered contents, with `output_encoding` being one of: `'binary'`, `'base64'` or `'hex'`.
### crypto.createDecipher(algorithm, key)
@@ -142,7 +142,7 @@ This can be called many times with new data as it is streamed.
### verifier.verify(cert, signature, signature_format='binary')
Verifies the signed data by using the `cert` which is a string containing
-the PEM encoded certificate, and `signature`, which is the previously calculates
+the PEM encoded certificate, and `signature`, which is the previously calculated
signature for the data, in the `signature_format` which can be `'binary'`, `'hex'` or `'base64'`.
Returns true or false depending on the validity of the signature for the data and public key.
Something went wrong with that request. Please try again.