summaryrefslogtreecommitdiff
path: root/tests/service/entropy.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/service/entropy.php')
-rwxr-xr-xtests/service/entropy.php61
1 files changed, 61 insertions, 0 deletions
diff --git a/tests/service/entropy.php b/tests/service/entropy.php
new file mode 100755
index 0000000..6401ffd
--- /dev/null
+++ b/tests/service/entropy.php
@@ -0,0 +1,61 @@
+<html>
+ <head>
+ <title>Dev Tools</title>
+ </head>
+ <body>
+ <h1>Supported Crypt/Encrypt Methods</h1>
+
+ <table width="100%">
+ <tr>
+ <td width="50%" valign="top">
+
+ <h2>CIPHER Methods</h2>
+ <pre>
+<?php
+$ciphers = openssl_get_cipher_methods();
+$ciphers_and_aliases = openssl_get_cipher_methods(true);
+$cipher_aliases = array_diff($ciphers_and_aliases, $ciphers);
+
+print_r($ciphers);
+
+print_r($cipher_aliases);
+
+?>
+ </pre>
+ </td>
+
+ <td width="50%" valign="top">
+
+ <h2>DIGER Methods</h2>
+ <pre>
+<?php
+$digests = openssl_get_md_methods();
+$digests_and_aliases = openssl_get_md_methods(true);
+$digests_aliases = array_diff($digests_and_aliases, $digests);
+
+print_r($digests);
+
+print_r($digests_aliases);
+?>
+
+ </pre>
+
+ <h2>HASH Algorythms</h2>
+ <pre>
+ <?php print_r( hash_algos() ); ?>
+ </pre>
+
+ <h2>Random</h2>
+ <pre>
+random_bytes()
+32Bytes: <?=bin2hex(random_bytes(32))?>
+ </pre>
+
+
+ </td>
+
+ </tr>
+ </table>
+
+ </body>
+</html>