Browse files

Document missing base64 padding.

  • Loading branch information...
1 parent 8043ad2 commit 4729280763db7ee19f45983ef87f72d0cdef7496 @gisle gisle committed Oct 6, 2003
Showing with 5 additions and 0 deletions.
  1. +5 −0
@@ -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

0 comments on commit 4729280

Please sign in to comment.