温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/reference/bun/Password
点击访问原文链接

Bun.Password object | API Reference | Bun

Bun.Password object | API Reference | BunBuildDocsReferenceGuidesBlogDiscord/Bun/PasswordNPassword

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/Bun/PasswordNPassword

namespace

Passwordnamespace Password

Hash and verify passwords using argon2 or bcrypt

These are fast APIs that can run in a worker thread if used asynchronously.

interface Argon2Algorithmalgorithm: 'argon2d' | 'argon2i' | 'argon2id'memoryCost?: number

Memory cost, which defines the memory usage, given in kibibytes. Minimum 8.

timeCost?: number

Defines the amount of computation realized and therefore the execution time, given in number of iterations.

interface BCryptAlgorithmalgorithm: 'bcrypt'cost?: number

A number between 4 and 31. The default is 10.

type AlgorithmLabel = BCryptAlgorithm | Argon2Algorithm['algorithm']

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicense

Baked with ❤️ in San Francisco

We're hiring →

Bun.Password object | API Reference | Bun,AI智能索引,全网链接索引,智能导航,网页索引

    Hash and verify passwords using argon2 or bcrypt These are fast APIs that can run in a worker thread if used asynchronously.