Skip to content

Commit

Permalink
Document missing base64 padding.
Browse files Browse the repository at this point in the history
  • Loading branch information
gisle committed Oct 6, 2003
1 parent 8043ad2 commit 4729280
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions SHA1.pm
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ Same as sha1(), but will return the digest in hexadecimal form.
Same as sha1(), but will return the digest as a base64 encoded string.
Note that the base64 encoded string returned is not padded to be a
multiple of 4 bytes long. If you want interoperability with other
base64 encoded sha1 digests you might want to append the redundant
string "=" to the result.
=item sha1_transform($data)
Implements the basic SHA1 trasnform on a 64 byte block. $data and the returned $digest are
Expand Down

0 comments on commit 4729280

Please sign in to comment.