/**
* This method registers shopware's default hash algorithm
*
* @return PasswordEncoderInterface[]
*/
public function onAddEncoder(Enlight_Event_EventArgs
$args): array
{ $hashes =
$args->
getReturn();
$hashes[] =
new Shopware\Components\Password\Encoder\
Argon2id($this->
getArgon2Options());
$hashes[] =
new Shopware\Components\Password\Encoder\
Argon2i($this->
getArgon2Options());
$hashes[] =
new Shopware\Components\Password\Encoder\
Bcrypt($this->
getBcryptOptions());
$hashes[] =
new Shopware\Components\Password\Encoder\
Sha256($this->
getSha256Options());
$hashes[] =
new Shopware\Components\Password\Encoder\
LegacyBackendMd5();
$hashes[] =
new Shopware\Components\Password\Encoder\
Md5();
$hashes[] =
new Shopware\Components\Password\Encoder\
PreHashed();
return $hashes;
} /**
* Crate config form elements
*/