Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Document missing base64 padding.

  • Loading branch information...
commit 4729280763db7ee19f45983ef87f72d0cdef7496 1 parent 8043ad2
@gisle gisle authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 SHA1.pm
View
5 SHA1.pm
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.