问题描述
但是我想知道是否有什么方法可以使密码更安全,是否有办法在密码中进行更多回合,我还读到Argon2id比bcrypt更安全,这是正确的吗?如果正确我该如何使用它?我在这里留下我的注册码
{
"name": "Stores","type": "array","items": {
"name": "Hours","type": "record","fields": [
{
"name": "Week","type": "string"
},{
"name": "Business","type": {
"type": "array","items": {
"name": "Business_record","fields": [
{
"name": "Day","type": "string"
},{
"name": "StartTime",{
"name": "EndTime","type": "string"
}
]
}
}
}
]
}
}
解决方法
来自docs:
您可以为config/hashing.php
文件中设置的bcrypt和argon2哈希驱动程序指定轮数
对于bcrypt:
$hashed = Hash::make('password',[
'rounds' => 12,]);
对于氩2
$hashed = Hash::make('password',[
'memory' => 1024,'time' => 2,'threads' => 2,]);
人们似乎认为argon2更安全。我不能声称完全理解为什么,但是我认为这与argon2的多线程有关,如果我正确理解的话,它比bcrypt更能抵抗GPU破解。