diff options
| author | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-04-27 03:47:30 +0300 |
|---|---|---|
| committer | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-04-27 03:47:30 +0300 |
| commit | 059e0d95d0c28bc5060e87e146eaf7411f51bf90 (patch) | |
| tree | 7c21ac432f16dde2329a0d5954d70711eceb48e6 /tests/service/entropy.php | |
| parent | 26cd8ee99659ef1926c96a049c93645ffc9b169d (diff) | |
| download | gyraf1gov-059e0d95d0c28bc5060e87e146eaf7411f51bf90.tar.gz gyraf1gov-059e0d95d0c28bc5060e87e146eaf7411f51bf90.tar.bz2 gyraf1gov-059e0d95d0c28bc5060e87e146eaf7411f51bf90.zip | |
skeleton commit; based on an anom project
Diffstat (limited to 'tests/service/entropy.php')
| -rwxr-xr-x | tests/service/entropy.php | 61 |
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> |
