1. Packages
  2. Standard Library
  3. API Docs
  4. bcrypt
StandardLibrary v2.3.2 published on Tuesday, Feb 10, 2026 by Pulumi
std logo
StandardLibrary v2.3.2 published on Tuesday, Feb 10, 2026 by Pulumi

    Returns the Blowfish encrypted hash of the string at the given cost. A default cost of 10 will be used if not provided.

    Using bcrypt

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function bcrypt(args: BcryptArgs, opts?: InvokeOptions): Promise<BcryptResult>
    function bcryptOutput(args: BcryptOutputArgs, opts?: InvokeOptions): Output<BcryptResult>
    def bcrypt(cost: Optional[int] = None,
               input: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> BcryptResult
    def bcrypt_output(cost: Optional[pulumi.Input[int]] = None,
               input: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[BcryptResult]
    func Bcrypt(ctx *Context, args *BcryptArgs, opts ...InvokeOption) (*BcryptResult, error)
    func BcryptOutput(ctx *Context, args *BcryptOutputArgs, opts ...InvokeOption) BcryptResultOutput

    > Note: This function is named Bcrypt in the Go SDK.

    public static class Bcrypt 
    {
        public static Task<BcryptResult> InvokeAsync(BcryptArgs args, InvokeOptions? opts = null)
        public static Output<BcryptResult> Invoke(BcryptInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<BcryptResult> bcrypt(BcryptArgs args, InvokeOptions options)
    public static Output<BcryptResult> bcrypt(BcryptArgs args, InvokeOptions options)
    
    fn::invoke:
      function: std:bcrypt
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Input string
    Cost int
    Input string
    Cost int
    input String
    cost Integer
    input string
    cost number
    input str
    cost int
    input String
    cost Number

    bcrypt Result

    The following output properties are available:

    Result string
    Result string
    result String
    result string
    result str
    result String

    Package Details

    Repository
    std pulumi/pulumi-std
    License
    std logo
    StandardLibrary v2.3.2 published on Tuesday, Feb 10, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate