Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
fusiondirectory
constant_time_encoding
Commits
b77aaa50
Unverified
Commit
b77aaa50
authored
4 years ago
by
P.I.E. Security Team
Committed by
GitHub
4 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #28 from szepeviktor/patch-1
Show users the proper way of importing classes
parents
f34c2b11
6b21658f
master
v2.6.3
v2.6.2
v2.6.1
v2.6.0
v2.5.0
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+3
-3
README.md
with
3 additions
and
3 deletions
+3
-3
README.md
+
3
−
3
View file @
b77aaa50
...
@@ -36,7 +36,7 @@ composer require paragonie/constant_time_encoding
...
@@ -36,7 +36,7 @@ composer require paragonie/constant_time_encoding
## How to Use
## How to Use
```
php
```
php
use
\
ParagonIE\ConstantTime\Encoding
;
use
ParagonIE\ConstantTime\Encoding
;
// possibly (if applicable):
// possibly (if applicable):
// require 'vendor/autoload.php';
// require 'vendor/autoload.php';
...
@@ -63,8 +63,8 @@ If you only need a particular variant, you can just reference the
...
@@ -63,8 +63,8 @@ If you only need a particular variant, you can just reference the
required class like so:
required class like so:
```
php
```
php
use
\
ParagonIE\ConstantTime\Base64
;
use
ParagonIE\ConstantTime\Base64
;
use
\
ParagonIE\ConstantTime\Base32
;
use
ParagonIE\ConstantTime\Base32
;
$data
=
random_bytes
(
32
);
$data
=
random_bytes
(
32
);
echo
Base64
::
encode
(
$data
),
"
\n
"
;
echo
Base64
::
encode
(
$data
),
"
\n
"
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets