範例
Hash public demonstration input with a fresh random salt, then verify it. Cost 4 keeps these examples quick and is not a production password-storage recommendation.
A release-bot demo password
輸入
demo-release-2025Expected checks
Bcrypt compare recovers:
Match: demo-release-2025- 轮數
4
A weather-station demo password
輸入
public-weather-demoExpected checks
Bcrypt compare recovers:
Match: public-weather-demo- 轮數
4
A public training passphrase
輸入
never-use-example-passwordExpected checks
Bcrypt compare recovers:
Match: never-use-example-password- 轮數
4
A punctuation-sensitive password
輸入
demo!with#punctuationExpected checks
Bcrypt compare recovers:
Match: demo!with#punctuation- 轮數
4
A trailing-space password
輸入
demo-trailing-space Expected checks
Bcrypt compare recovers:
Match: demo-trailing-space - 轮數
4