Toggle navigation
Email or Username
Password
Remember
Login
Register
|
I forgot my password
Questions
Unanswered
Tags
Users
Ask a Question
Why random_bytes function displays krakozyabliki?
0
like
0
dislike
3
views
For example,
File test.php in utf-8, the Code:
<?echo random_bytes(32);</code>
php
asked
Apr 12, 2019
by
romalu
|
3
views
answer
comment
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
3
Answers
0
like
0
dislike
I think this is due to the fact that the function generates random
bytes
, not letters.
answered
Apr 18, 2019
by
Wolfnsex
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Because it displays bytes instead of a string randomly.
answered
Apr 18, 2019
by
Sanasol
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Use over function
php.net: bin2hex
, for example:
$bytes = random_bytes(12); var_dump(bin2hex($bytes));
answered
Apr 18, 2019
by
hrebet
ask related question
comment
Please
log in
or
register
to add a comment.
Related questions
0
like
0
dislike
3
answers
Why php displays question marks instead of Russian letters?
asked
May 22, 2019
by
yagyar001
php
0
like
0
dislike
1
answer
Why file_get_contents displays other information?
asked
Apr 27, 2019
by
Centrovoy
php
0
like
0
dislike
1
answer
The output database with PHP + Mysqli, why only displays one record?
asked
Apr 24, 2019
by
ID141006628
php
0
like
0
dislike
1
answer
Why cycle displays the same information 3 times?
asked
Apr 20, 2019
by
DjimiDjimi
php
database
html
0
like
0
dislike
2
answers
Why it displays gibberish?
asked
Apr 12, 2019
by
UnknownErrror
php
command-line
windows
Most popular tags
javascript
php
css
html
jquery
wordpress
python
linux
web-development
mysql
android
windows
java
layout
c#
computer-networks
node.js
cpp
iron
yii
vue.js
1C-Bitrix
react
laravel
django
nginx
system-administration
search-engine-optimization
api
ubuntu
the-it-education.
ajax
sql
programming
hosting
cms
design
apache
google-chrome
bootstrap
Vkontakte
macos
google
network-administration
git
laptops
algorithms
regular-expressions
unity-game-engine
email
angular
database
network-equipment
software
wooŃommerce
debian
.net
ios
information-security
video
law-in-it
browsers
books
parsing
wi-fi
game-development
career
htaccess
postgresql
telegram
mikrotik
mobile-development
ruby-on-rails
the-domain-name-system
modx
Yandex
c
json
opencart
Habr
freelance
vpn
asp.net
windows-server
symfony
bots
hard-drives
math
qt
DIY
audio
frontend
payment-system
bash
electronics
gulp.js
user-interface
docker
online-shopping
110,608
questions
257,186
answers
0
comments
33,949
users