4 <title>pgcrypto
</title>
6 <indexterm zone=
"pgcrypto">
7 <primary>pgcrypto
</primary>
11 The
<filename>pgcrypto<
/> module provides cryptographic functions for
12 <productname>PostgreSQL<
/>.
16 <title>General hashing functions
</title>
19 <title><function>digest()
</function></title>
22 digest(data text, type text) returns bytea
23 digest(data bytea, type text) returns bytea
27 Computes a binary hash of the given
<parameter>data<
/>.
28 <parameter>type<
/> is the algorithm to use.
29 Standard algorithms are
<literal>md5
</literal>,
<literal>sha1
</literal>,
30 <literal>sha224
</literal>,
<literal>sha256
</literal>,
31 <literal>sha384
</literal> and
<literal>sha512
</literal>.
32 If
<filename>pgcrypto<
/> was built with
33 OpenSSL, more algorithms are available, as detailed in
34 <xref linkend=
"pgcrypto-with-without-openssl">.
38 If you want the digest as a hexadecimal string, use
39 <function>encode()<
/> on the result. For example:
42 CREATE OR REPLACE FUNCTION sha1(bytea) returns text AS $$
43 SELECT encode(digest($
1, 'sha1'), 'hex')
44 $$ LANGUAGE SQL STRICT IMMUTABLE;
49 <title><function>hmac()
</function></title>
52 hmac(data text, key text, type text) returns bytea
53 hmac(data bytea, key text, type text) returns bytea
57 Calculates hashed MAC for
<parameter>data<
/> with key
<parameter>key<
/>.
58 <parameter>type<
/> is the same as in
<function>digest()<
/>.
62 This is similar to
<function>digest()<
/> but the hash can only be
63 recalculated knowing the key. This prevents the scenario of someone
64 altering data and also changing the hash to match.
68 If the key is larger than the hash block size it will first be hashed and
69 the result will be used as key.
75 <title>Password hashing functions
</title>
78 The functions
<function>crypt()<
/> and
<function>gen_salt()<
/>
79 are specifically designed for hashing passwords.
80 <function>crypt()<
/> does the hashing and
<function>gen_salt()<
/>
81 prepares algorithm parameters for it.
85 The algorithms in
<function>crypt()<
/> differ from usual hashing algorithms
86 like MD5 or SHA1 in the following respects:
92 They are slow. As the amount of data is so small, this is the only
93 way to make brute-forcing passwords hard.
98 They use a random value, called the
<firstterm>salt<
/>, so that users
99 having the same password will have different encrypted passwords.
100 This is also an additional defense against reversing the algorithm.
105 They include the algorithm type in the result, so passwords hashed with
106 different algorithms can co-exist.
111 Some of them are adaptive
— that means when computers get
112 faster, you can tune the algorithm to be slower, without
113 introducing incompatibility with existing passwords.
119 <title>Supported algorithms for
<function>crypt()<
/></title>
123 <entry>Algorithm
</entry>
124 <entry>Max password length
</entry>
125 <entry>Adaptive?
</entry>
126 <entry>Salt bits
</entry>
127 <entry>Description
</entry>
132 <entry><literal>bf<
/></entry>
136 <entry>Blowfish-based, variant
2a
</entry>
139 <entry><literal>md5<
/></entry>
140 <entry>unlimited
</entry>
143 <entry>MD5-based crypt
</entry>
146 <entry><literal>xdes<
/></entry>
150 <entry>Extended DES
</entry>
153 <entry><literal>des<
/></entry>
157 <entry>Original UNIX crypt
</entry>
164 <title><function>crypt()<
/></title>
167 crypt(password text, salt text) returns text
171 Calculates a crypt(
3)-style hash of
<parameter>password<
/>.
172 When storing a new password, you need to use
173 <function>gen_salt()<
/> to generate a new
<parameter>salt<
/> value.
174 To check a password, pass the stored hash value as
<parameter>salt<
/>,
175 and test whether the result matches the stored value.
178 Example of setting a new password:
181 UPDATE ... SET pswhash = crypt('new password', gen_salt('md5'));
184 Example of authentication:
187 SELECT pswhash = crypt('entered password', pswhash) FROM ... ;
190 This returns
<literal>true<
/> if the entered password is correct.
195 <title><function>gen_salt()<
/></title>
198 gen_salt(type text [, iter_count integer ]) returns text
202 Generates a new random salt string for use in
<function>crypt()<
/>.
203 The salt string also tells
<function>crypt()<
/> which algorithm to use.
207 The
<parameter>type<
/> parameter specifies the hashing algorithm.
208 The accepted types are:
<literal>des
</literal>,
<literal>xdes
</literal>,
209 <literal>md5
</literal> and
<literal>bf
</literal>.
213 The
<parameter>iter_count<
/> parameter lets the user specify the iteration
214 count, for algorithms that have one.
215 The higher the count, the more time it takes to hash
216 the password and therefore the more time to break it. Although with
217 too high a count the time to calculate a hash may be several years
218 — which is somewhat impractical. If the
<parameter>iter_count<
/>
219 parameter is omitted, the default iteration count is used.
220 Allowed values for
<parameter>iter_count<
/> depend on the algorithm and
221 are shown in
<xref linkend=
"pgcrypto-icfc-table">.
224 <table id=
"pgcrypto-icfc-table">
225 <title>Iteration counts for
<function>crypt()<
/></title>
229 <entry>Algorithm
</entry>
230 <entry>Default
</entry>
237 <entry><literal>xdes<
/></entry>
240 <entry>16777215</entry>
243 <entry><literal>bf<
/></entry>
253 For
<literal>xdes
</literal> there is an additional limitation that the
254 iteration count must be an odd number.
258 To pick an appropriate iteration count, consider that
259 the original DES crypt was designed to have the speed of
4 hashes per
260 second on the hardware of that time.
261 Slower than
4 hashes per second would probably dampen usability.
262 Faster than
100 hashes per second is probably too fast.
266 <xref linkend=
"pgcrypto-hash-speed-table"> gives an overview of the relative slowness
267 of different hashing algorithms.
268 The table shows how much time it would take to try all
269 combinations of characters in an
8-character password, assuming
270 that the password contains either only lowercase letters, or
271 upper- and lower-case letters and numbers.
272 In the
<literal>crypt-bf
</literal> entries, the number after a slash is
273 the
<parameter>iter_count
</parameter> parameter of
274 <function>gen_salt
</function>.
277 <table id=
"pgcrypto-hash-speed-table">
278 <title>Hash algorithm speeds
</title>
282 <entry>Algorithm
</entry>
283 <entry>Hashes/sec
</entry>
284 <entry>For
<literal>[a-z]<
/></entry>
285 <entry>For
<literal>[A-Za-z0-
9]<
/></entry>
290 <entry><literal>crypt-bf/
8<
/></entry>
292 <entry>246 years
</entry>
293 <entry>251322 years
</entry>
296 <entry><literal>crypt-bf/
7<
/></entry>
298 <entry>121 years
</entry>
299 <entry>123457 years
</entry>
302 <entry><literal>crypt-bf/
6<
/></entry>
304 <entry>62 years
</entry>
305 <entry>62831 years
</entry>
308 <entry><literal>crypt-bf/
5<
/></entry>
310 <entry>33 years
</entry>
311 <entry>33351 years
</entry>
314 <entry><literal>crypt-md5<
/></entry>
316 <entry>2.6 years
</entry>
317 <entry>2625 years
</entry>
320 <entry><literal>crypt-des<
/></entry>
321 <entry>362837</entry>
322 <entry>7 days
</entry>
323 <entry>19 years
</entry>
326 <entry><literal>sha1<
/></entry>
327 <entry>590223</entry>
328 <entry>4 days
</entry>
329 <entry>12 years
</entry>
332 <entry><literal>md5<
/></entry>
333 <entry>2345086</entry>
335 <entry>3 years
</entry>
348 The machine used is a
1.5GHz Pentium
4.
353 <literal>crypt-des<
/> and
<literal>crypt-md5<
/> algorithm numbers are
354 taken from John the Ripper v1.6
.38 <literal>-test<
/> output.
359 <literal>md5<
/> numbers are from mdcrack
1.2.
364 <literal>sha1<
/> numbers are from lcrack-
20031130-beta.
369 <literal>crypt-bf
</literal> numbers are taken using a simple program that
370 loops over
1000 8-character passwords. That way I can show the speed
371 with different numbers of iterations. For reference:
<literal>john
372 -test
</literal> shows
213 loops/sec for
<literal>crypt-bf/
5<
/>.
374 difference in results is in accordance with the fact that the
375 <literal>crypt-bf
</literal> implementation in
<filename>pgcrypto<
/>
376 is the same one used in John the Ripper.)
382 Note that
<quote>try all combinations
</quote> is not a realistic exercise.
383 Usually password cracking is done with the help of dictionaries, which
384 contain both regular words and various mutations of them. So, even
385 somewhat word-like passwords could be cracked much faster than the above
386 numbers suggest, while a
6-character non-word-like password may escape
393 <title>PGP encryption functions
</title>
396 The functions here implement the encryption part of the OpenPGP (RFC
4880)
397 standard. Supported are both symmetric-key and public-key encryption.
401 An encrypted PGP message consists of
2 parts, or
<firstterm>packets<
/>:
406 Packet containing a session key
— either symmetric-key or public-key
412 Packet containing data encrypted with the session key.
418 When encrypting with a symmetric key (i.e., a password):
423 The given password is hashed using a String2Key (S2K) algorithm. This is
424 rather similar to
<function>crypt()<
/> algorithms
— purposefully
425 slow and with random salt
— but it produces a full-length binary
431 If a separate session key is requested, a new random key will be
432 generated. Otherwise the S2K key will be used directly as the session
438 If the S2K key is to be used directly, then only S2K settings will be put
439 into the session key packet. Otherwise the session key will be encrypted
440 with the S2K key and put into the session key packet.
446 When encrypting with a public key:
451 A new random session key is generated.
456 It is encrypted using the public key and put into the session key packet.
462 In either case the data to be encrypted is processed as follows:
467 Optional data-manipulation: compression, conversion to UTF-
8,
468 and/or conversion of line-endings.
473 The data is prefixed with a block of random bytes. This is equivalent
474 to using a random IV.
479 An SHA1 hash of the random prefix and data is appended.
484 All this is encrypted with the session key and placed in the data packet.
490 <title><function>pgp_sym_encrypt()
</function></title>
493 pgp_sym_encrypt(data text, psw text [, options text ]) returns bytea
494 pgp_sym_encrypt_bytea(data bytea, psw text [, options text ]) returns bytea
497 Encrypt
<parameter>data<
/> with a symmetric PGP key
<parameter>psw<
/>.
498 The
<parameter>options<
/> parameter can contain option settings,
504 <title><function>pgp_sym_decrypt()
</function></title>
507 pgp_sym_decrypt(msg bytea, psw text [, options text ]) returns text
508 pgp_sym_decrypt_bytea(msg bytea, psw text [, options text ]) returns bytea
511 Decrypt a symmetric-key-encrypted PGP message.
514 Decrypting bytea data with
<function>pgp_sym_decrypt<
/> is disallowed.
515 This is to avoid outputting invalid character data. Decrypting
516 originally textual data with
<function>pgp_sym_decrypt_bytea<
/> is fine.
519 The
<parameter>options<
/> parameter can contain option settings,
525 <title><function>pgp_pub_encrypt()
</function></title>
528 pgp_pub_encrypt(data text, key bytea [, options text ]) returns bytea
529 pgp_pub_encrypt_bytea(data bytea, key bytea [, options text ]) returns bytea
532 Encrypt
<parameter>data<
/> with a public PGP key
<parameter>key<
/>.
533 Giving this function a secret key will produce a error.
536 The
<parameter>options<
/> parameter can contain option settings,
542 <title><function>pgp_pub_decrypt()
</function></title>
545 pgp_pub_decrypt(msg bytea, key bytea [, psw text [, options text ]]) returns text
546 pgp_pub_decrypt_bytea(msg bytea, key bytea [, psw text [, options text ]]) returns bytea
549 Decrypt a public-key-encrypted message.
<parameter>key<
/> must be the
550 secret key corresponding to the public key that was used to encrypt.
551 If the secret key is password-protected, you must give the password in
552 <parameter>psw<
/>. If there is no password, but you want to specify
553 options, you need to give an empty password.
556 Decrypting bytea data with
<function>pgp_pub_decrypt<
/> is disallowed.
557 This is to avoid outputting invalid character data. Decrypting
558 originally textual data with
<function>pgp_pub_decrypt_bytea<
/> is fine.
561 The
<parameter>options<
/> parameter can contain option settings,
567 <title><function>pgp_key_id()
</function></title>
570 pgp_key_id(bytea) returns text
573 <function>pgp_key_id<
/> extracts the key ID of a PGP public or secret key.
574 Or it gives the key ID that was used for encrypting the data, if given
575 an encrypted message.
578 It can return
2 special key IDs:
586 The message is encrypted with a symmetric key.
594 The message is public-key encrypted, but the key ID has been removed.
595 That means you will need to try all your secret keys on it to see
596 which one decrypts it.
<filename>pgcrypto<
/> itself does not produce
602 Note that different keys may have the same ID. This is rare but a normal
603 event. The client application should then try to decrypt with each one,
604 to see which fits
— like handling
<literal>ANYKEY<
/>.
609 <title><function>armor()
</function>,
<function>dearmor()
</function></title>
612 armor(data bytea) returns text
613 dearmor(data text) returns bytea
616 These functions wrap/unwrap binary data into PGP Ascii Armor format,
617 which is basically Base64 with CRC and additional formatting.
622 <title>Options for PGP functions
</title>
625 Options are named to be similar to GnuPG. An option's value should be
626 given after an equal sign; separate options from each other with commas.
630 pgp_sym_encrypt(data, psw, 'compress-algo=
1, cipher-algo=aes256')
634 All of the options except
<literal>convert-crlf
</literal> apply only to
635 encrypt functions. Decrypt functions get the parameters from the PGP
640 The most interesting options are probably
641 <literal>compress-algo
</literal> and
<literal>unicode-mode
</literal>.
642 The rest should have reasonable defaults.
646 <title>cipher-algo
</title>
649 Which cipher algorithm to use.
652 Values: bf, aes128, aes192, aes256 (OpenSSL-only:
<literal>3des
</literal>,
<literal>cast5
</literal>)
654 Applies to: pgp_sym_encrypt, pgp_pub_encrypt
659 <title>compress-algo
</title>
662 Which compression algorithm to use. Only available if
663 <productname>PostgreSQL
</productname> was built with zlib.
669 2 - ZLIB compression (= ZIP plus meta-data and block CRCs)
671 Applies to: pgp_sym_encrypt, pgp_pub_encrypt
676 <title>compress-level
</title>
679 How much to compress. Higher levels compress smaller but are slower.
680 0 disables compression.
685 Applies to: pgp_sym_encrypt, pgp_pub_encrypt
690 <title>convert-crlf
</title>
693 Whether to convert
<literal>\n
</literal> into
<literal>\r\n
</literal> when
694 encrypting and
<literal>\r\n
</literal> to
<literal>\n
</literal> when
695 decrypting. RFC
4880 specifies that text data should be stored using
696 <literal>\r\n
</literal> line-feeds. Use this to get fully RFC-compliant
702 Applies to: pgp_sym_encrypt, pgp_pub_encrypt, pgp_sym_decrypt, pgp_pub_decrypt
707 <title>disable-mdc
</title>
710 Do not protect data with SHA-
1. The only good reason to use this
711 option is to achieve compatibility with ancient PGP products, predating
712 the addition of SHA-
1 protected packets to RFC
4880.
713 Recent gnupg.org and pgp.com software supports it fine.
718 Applies to: pgp_sym_encrypt, pgp_pub_encrypt
723 <title>enable-session-key
</title>
726 Use separate session key. Public-key encryption always uses a separate
727 session key; this is for symmetric-key encryption, which by default
728 uses the S2K key directly.
733 Applies to: pgp_sym_encrypt
738 <title>s2k-mode
</title>
741 Which S2K algorithm to use.
745 0 - Without salt. Dangerous!
746 1 - With salt but with fixed iteration count.
747 3 - Variable iteration count.
749 Applies to: pgp_sym_encrypt
754 <title>s2k-digest-algo
</title>
757 Which digest algorithm to use in S2K calculation.
762 Applies to: pgp_sym_encrypt
767 <title>s2k-cipher-algo
</title>
770 Which cipher to use for encrypting separate session key.
773 Values: bf, aes, aes128, aes192, aes256
774 Default: use cipher-algo
775 Applies to: pgp_sym_encrypt
780 <title>unicode-mode
</title>
783 Whether to convert textual data from database internal encoding to
784 UTF-
8 and back. If your database already is UTF-
8, no conversion will
785 be done, but the message will be tagged as UTF-
8. Without this option
791 Applies to: pgp_sym_encrypt, pgp_pub_encrypt
797 <title>Generating PGP keys with GnuPG
</title>
800 To generate a new key:
806 The preferred key type is
<quote>DSA and Elgamal<
/>.
809 For RSA encryption you must create either DSA or RSA sign-only key
810 as master and then add an RSA encryption subkey with
811 <literal>gpg --edit-key
</literal>.
817 gpg --list-secret-keys
820 To export a public key in ascii-armor format:
823 gpg -a --export KEYID
> public.key
826 To export a secret key in ascii-armor format:
829 gpg -a --export-secret-keys KEYID
> secret.key
832 You need to use
<function>dearmor()<
/> on these keys before giving them to
833 the PGP functions. Or if you can handle binary data, you can drop
834 <literal>-a
</literal> from the command.
837 For more details see
<literal>man gpg
</literal>,
838 <ulink url=
"http://www.gnupg.org/gph/en/manual.html">The GNU
839 Privacy Handbook
</ulink> and other documentation on
840 <ulink url=
"http://www.gnupg.org"></ulink>.
845 <title>Limitations of PGP code
</title>
850 No support for signing. That also means that it is not checked
851 whether the encryption subkey belongs to the master key.
856 No support for encryption key as master key. As such practice
857 is generally discouraged, this should not be a problem.
862 No support for several subkeys. This may seem like a problem, as this
863 is common practice. On the other hand, you should not use your regular
864 GPG/PGP keys with
<filename>pgcrypto<
/>, but create new ones,
865 as the usage scenario is rather different.
873 <title>Raw encryption functions
</title>
876 These functions only run a cipher over data; they don't have any advanced
877 features of PGP encryption. Therefore they have some major problems:
882 They use user key directly as cipher key.
887 They don't provide any integrity checking, to see
888 if the encrypted data was modified.
893 They expect that users manage all encryption parameters
899 They don't handle text.
904 So, with the introduction of PGP encryption, usage of raw
905 encryption functions is discouraged.
909 encrypt(data bytea, key bytea, type text) returns bytea
910 decrypt(data bytea, key bytea, type text) returns bytea
912 encrypt_iv(data bytea, key bytea, iv bytea, type text) returns bytea
913 decrypt_iv(data bytea, key bytea, iv bytea, type text) returns bytea
917 Encrypt/decrypt data using the cipher method specified by
918 <parameter>type
</parameter>. The syntax of the
919 <parameter>type
</parameter> string is:
923 <replaceable>algorithm<
/> <optional> <literal>-<
/> <replaceable>mode<
/> </optional> <optional> <literal>/pad:<
/> <replaceable>padding<
/> </optional>
927 where
<replaceable>algorithm<
/> is one of:
930 <listitem><para><literal>bf
</literal> — Blowfish
</para></listitem>
931 <listitem><para><literal>aes
</literal> — AES (Rijndael-
128)
</para></listitem>
934 and
<replaceable>mode<
/> is one of:
939 <literal>cbc
</literal> — next block depends on previous (default)
944 <literal>ecb
</literal> — each block is encrypted separately (for
950 and
<replaceable>padding<
/> is one of:
955 <literal>pkcs
</literal> — data may be any length (default)
960 <literal>none
</literal> — data must be multiple of cipher block size
965 So, for example, these are equivalent:
968 encrypt(data, 'fooz', 'bf')
969 encrypt(data, 'fooz', 'bf-cbc/pad:pkcs')
972 In
<function>encrypt_iv<
/> and
<function>decrypt_iv<
/>, the
973 <parameter>iv<
/> parameter is the initial value for the CBC mode;
974 it is ignored for ECB.
975 It is clipped or padded with zeroes if not exactly block size.
976 It defaults to all zeroes in the functions without this parameter.
981 <title>Random-data functions
</title>
984 gen_random_bytes(count integer) returns bytea
987 Returns
<parameter>count<
/> cryptographically strong random bytes.
988 At most
1024 bytes can be extracted at a time. This is to avoid
989 draining the randomness generator pool.
997 <title>Configuration
</title>
1000 <filename>pgcrypto<
/> configures itself according to the findings of the
1001 main PostgreSQL
<literal>configure
</literal> script. The options that
1002 affect it are
<literal>--with-zlib
</literal> and
1003 <literal>--with-openssl
</literal>.
1007 When compiled with zlib, PGP encryption functions are able to
1008 compress data before encrypting.
1012 When compiled with OpenSSL, there will be more algorithms available.
1013 Also public-key encryption functions will be faster as OpenSSL
1014 has more optimized BIGNUM functions.
1017 <table id=
"pgcrypto-with-without-openssl">
1018 <title>Summary of functionality with and without OpenSSL
</title>
1022 <entry>Functionality
</entry>
1023 <entry>Built-in
</entry>
1024 <entry>With OpenSSL
</entry>
1039 <entry>SHA224/
256/
384/
512</entry>
1041 <entry>yes (Note
1)
</entry>
1044 <entry>Other digest algorithms
</entry>
1046 <entry>yes (Note
2)
</entry>
1049 <entry>Blowfish
</entry>
1056 <entry>yes (Note
3)
</entry>
1059 <entry>DES/
3DES/CAST5
</entry>
1064 <entry>Raw encryption
</entry>
1069 <entry>PGP Symmetric encryption
</entry>
1074 <entry>PGP Public-Key encryption
</entry>
1089 SHA2 algorithms were added to OpenSSL in version
0.9.8. For
1090 older versions,
<filename>pgcrypto<
/> will use built-in code.
1095 Any digest algorithm OpenSSL supports is automatically picked up.
1096 This is not possible with ciphers, which need to be supported
1102 AES is included in OpenSSL since version
0.9.7. For
1103 older versions,
<filename>pgcrypto<
/> will use built-in code.
1110 <title>NULL handling
</title>
1113 As is standard in SQL, all functions return NULL, if any of the arguments
1114 are NULL. This may create security risks on careless usage.
1119 <title>Security limitations
</title>
1122 All
<filename>pgcrypto<
/> functions run inside the database server.
1124 the data and passwords move between
<filename>pgcrypto<
/> and client
1125 applications in clear text. Thus you must:
1130 <para>Connect locally or use SSL connections.
</para>
1133 <para>Trust both system and database administrator.
</para>
1138 If you cannot, then better do crypto inside client application.
1143 <title>Useful reading
</title>
1147 <para><ulink url=
"http://www.gnupg.org/gph/en/manual.html"></ulink></para>
1148 <para>The GNU Privacy Handbook.
</para>
1151 <para><ulink url=
"http://www.openwall.com/crypt/"></ulink></para>
1152 <para>Describes the crypt-blowfish algorithm.
</para>
1156 <ulink url=
"http://www.stack.nl/~galactus/remailers/passphrase-faq.html"></ulink>
1158 <para>How to choose a good password.
</para>
1161 <para><ulink url=
"http://world.std.com/~reinhold/diceware.html"></ulink></para>
1162 <para>Interesting idea for picking passwords.
</para>
1166 <ulink url=
"http://www.interhack.net/people/cmcurtin/snake-oil-faq.html"></ulink>
1168 <para>Describes good and bad cryptography.
</para>
1174 <title>Technical references
</title>
1178 <para><ulink url=
"http://www.ietf.org/rfc/rfc4880.txt"></ulink></para>
1179 <para>OpenPGP message format.
</para>
1182 <para><ulink url=
"http://www.ietf.org/rfc/rfc1321.txt"></ulink></para>
1183 <para>The MD5 Message-Digest Algorithm.
</para>
1186 <para><ulink url=
"http://www.ietf.org/rfc/rfc2104.txt"></ulink></para>
1187 <para>HMAC: Keyed-Hashing for Message Authentication.
</para>
1191 <ulink url=
"http://www.usenix.org/events/usenix99/provos.html"></ulink>
1193 <para>Comparison of crypt-des, crypt-md5 and bcrypt algorithms.
</para>
1196 <para><ulink url=
"http://csrc.nist.gov/cryptval/des.htm"></ulink></para>
1197 <para>Standards for DES,
3DES and AES.
</para>
1201 <ulink url=
"http://en.wikipedia.org/wiki/Fortuna_(PRNG)"></ulink>
1203 <para>Description of Fortuna CSPRNG.
</para>
1206 <para><ulink url=
"http://jlcooke.ca/random/"></ulink></para>
1207 <para>Jean-Luc Cooke Fortuna-based /dev/random driver for Linux.
</para>
1210 <para><ulink url=
"http://www.cs.ut.ee/~helger/crypto/"></ulink></para>
1211 <para>Collection of cryptology pointers.
</para>
1218 <title>Author
</title>
1221 Marko Kreen
<email>markokr@gmail.com
</email>
1225 <filename>pgcrypto
</filename> uses code from the following sources:
1232 <entry>Algorithm
</entry>
1233 <entry>Author
</entry>
1234 <entry>Source origin
</entry>
1239 <entry>DES crypt
</entry>
1240 <entry>David Burren and others
</entry>
1241 <entry>FreeBSD libcrypt
</entry>
1244 <entry>MD5 crypt
</entry>
1245 <entry>Poul-Henning Kamp
</entry>
1246 <entry>FreeBSD libcrypt
</entry>
1249 <entry>Blowfish crypt
</entry>
1250 <entry>Solar Designer
</entry>
1251 <entry>www.openwall.com
</entry>
1254 <entry>Blowfish cipher
</entry>
1255 <entry>Simon Tatham
</entry>
1256 <entry>PuTTY
</entry>
1259 <entry>Rijndael cipher
</entry>
1260 <entry>Brian Gladman
</entry>
1261 <entry>OpenBSD sys/crypto
</entry>
1264 <entry>MD5 and SHA1
</entry>
1265 <entry>WIDE Project
</entry>
1266 <entry>KAME kame/sys/crypto
</entry>
1269 <entry>SHA256/
384/
512 </entry>
1270 <entry>Aaron D. Gifford
</entry>
1271 <entry>OpenBSD sys/crypto
</entry>
1274 <entry>BIGNUM math
</entry>
1275 <entry>Michael J. Fromberger
</entry>
1276 <entry>dartmouth.edu/~sting/sw/imath
</entry>