-
Notifications
You must be signed in to change notification settings - Fork 2
/
README
64 lines (55 loc) · 2.85 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
+----------------------------------------------------------------------+
| db2-hash-routines README |
+----------------------------------------------------------------------+
| Author: Helmut K. C. Tessarek |
+----------------------------------------------------------------------+
| Website: http://tessus.github.io/db2-hash-routines |
+----------------------------------------------------------------------+
1) Description of the library
2) File Description
+----------------------------------------------------------------------+
| 1. Description of the librarys |
+----------------------------------------------------------------------+
This library delivers the following functions as UDFs and SPs:
function in library UDF / SP
bcrypt bcrypt
sha256hex sha256_hex
sha1hex sha1_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 php_md5 routine is compatible to the PHP md5 function.
The sha256_hex routine returns a sha256 64-character hexadecimal hash.
The sha1_hex routine returns a sha1 40-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).
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.
+----------------------------------------------------------------------+
| 2. File Description |
+----------------------------------------------------------------------+
db2hash.c the SQL API stuff
hash.c the c code for the hash functions
hash.h include file
sha2.h include file for APR sha256
register.ddl script to register the UDFs and SPs
drop.ddl script to drop the UDFs and SPs
makertn bash script to compile the library (Linux/AIX)
man/maninstall script to install the man pages
test_hash.c test program for the functions
hash.exp function export file for AIX
hash.def definition file for Windows
makertn.bat script to compile the library (win32)
maketest.bat script to compile test program
INSTALL compiling and installing instructions
ChangeLog change log
README this file