Skip to content

Commit

Permalink
update README files to include sha256_hex
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
tessus committed May 4, 2017
1 parent 669cb3b commit 8a157de
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
18 changes: 10 additions & 8 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,24 @@ This library delivers the following functions as UDFs and SPs:
function in library UDF / SP

bcrypt bcrypt
sha256 sha256
sha512 sha512
sha256hex sha256_hex
sha256 sha256s sha256
sha512 sha512s sha512
phpmd5 php_md5
aprmd5 apr_md5
aprcrypt apr_crypt
aprsha1 apr_sha1
aprsha256 apr_sha256
validate validate_pw

The phpmd5 function is compatible to the PHP md5 function.
The aprmd5, aprcrypt, aprsha1, bcrypt functions are compatible to the
functions used in Apache's htpasswd utility.
The aprsha256 routine returns the identifier {SHA256} plus the base64
The php_md5 routine is compatible to the PHP md5 function.
The sha256_hex routine returns a sha256 64-character hexadecimal hash.
The apr_md5, apr_crypt, apr_sha1 and bcrypt routines are compatible to the
functions used in Apache’s htpasswd utility.
The apr_sha256 routine returns the identifier {SHA256} plus the base64
encoded sha256 hash.
The sha256 and sha512 functions return glib2's crypt hashes (if supported).
The validate function validates a password against a hash.
The sha256 and sha512 functions return glib2s crypt hashes (if supported).
validate_pw validates a password against a hash.

In win32 environments apr_crypt returns the output of bcrypt, if available.
If bcrypt is not available, the output of apr_md5 is returned.
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ signing key [0xC11F128D](https://sks-keyservers.net/pks/lookup?op=get&search=0xF
<br>
[bcrypt](http://tessus.github.io/db2-hash-routines/man/bcrypt.html)
<br>
[sha256_hex](http://tessus.github.io/db2-hash-routines/man/sha256_hex.html)
<br>
[sha256](http://tessus.github.io/db2-hash-routines/man/sha256.html)
<br>
[sha512](http://tessus.github.io/db2-hash-routines/man/sha512.html)
Expand Down

0 comments on commit 8a157de

Please sign in to comment.