diff --git a/FAQ.md b/FAQ.md new file mode 100644 index 0000000..d086e59 --- /dev/null +++ b/FAQ.md @@ -0,0 +1,19 @@ +## I get the error "There is no suitable CSPRNG installed on your system" + +This error means you do not have a secure cryptographic random number generator installed on your system. This is however required by PrivateBin for security reasons. +Have a look at the [requirements list](https://github.com/PrivateBin/PrivateBin/wiki/Installation#requirements) to see what you are missing. + +If you think you have at least one secure PRNG installed you can use the following test script to check which secure PRNG you actually support: +```php +echo '
PHP version used: ', PHP_VERSION, PHP_EOL, + 'extension libsodium is loaded: ', + (extension_loaded('libsodium') ? 'true' : 'false'), PHP_EOL, + '/dev/urandom exists and is readable: ', + (is_readable('/dev/urandom') ? 'true' : 'false'), PHP_EOL, + 'extension mcrypt is loaded: ', + (extension_loaded('mcrypt') ? 'true' : 'false'), PHP_EOL, + 'function mcrypt_create_iv exists: ', + (function_exists('mcrypt_create_iv') ? 'true' : 'false'), PHP_EOL, + 'extension com_dotnet is loaded: ', + (extension_loaded('com_dotnet') ? 'true' : 'false'), ''; +``` \ No newline at end of file