Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sodium-support
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
sodium-support
Commits
09e001af
Commit
09e001af
authored
5 years ago
by
Thomas Löffler
Browse files
Options
Downloads
Patches
Plain Diff
Add Readme file
parent
614a50fe
Loading
Loading
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+34
-0
34 additions, 0 deletions
README.md
with
34 additions
and
0 deletions
README.md
0 → 100644
+
34
−
0
View file @
09e001af
# Extension "sodium_support"
## What does it do?
It adds support for the php crypto library
[
sodium
](
https://www.php.net/manual/de/book.sodium.php
)
.
This library provides several hash algorithms.
This extension will use the argon2id password hashing (
[
RFC
](
https://tools.ietf.org/html/draft-irtf-cfrg-argon2-02
)
)
## Installation
Install the extension via composer:
`composer require fgtclb/sodium-support`
## Dependencies
This extension needs the PHP extension "sodium" to be installable.
## Usage
The extension automatically activates this hashing algorithm for FE and BE passwords.
<br>
You don't need to do anything.
## Use another algorithm
If you want to use another algorithm, please change the lines for FE and/or BE to the algorithm to use:
```
php
$GLOBALS
[
'TYPO3_CONF_VARS'
][
'FE'
][
'passwordHashing'
][
'className'
]
=
\Fgtclb\SodiumSupport\Crypto\PasswordHashing\SodiumPasswordHash
::
class
;
$GLOBALS
[
'TYPO3_CONF_VARS'
][
'BE'
][
'passwordHashing'
][
'className'
]
=
\Fgtclb\SodiumSupport\Crypto\PasswordHashing\SodiumPasswordHash
::
class
;
```
If you don't use this algorithm for none of them, you can easily remove this extension.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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