Skip to main content
Skip table of contents

BCrypt Calculator

This adapter creates and verifies salted BCrypt hashes.

Properties

Operation

Defines the operation executed by the adapter

Possible values:

  • GenerateHash: creates a salted hash to a specified plain text password
  • Verify: verifies the plain text password with the entered salted hash
  • VerifyAndReplace: verifies the plain text password with the entered salted hash and creates a new salted hash

Parameters

Adapter

Adapter main class (do not change!)

Possible valuesde.softproject.integration.adapter.bcrypt.BCryptAdapter: main class (default)

clearText

Plain text password

Possible values: Any string, e. g. MyPassword

(info) The parameter must not be empty.

bcryptHash

Salted BCrypt hash to be compared with the plain text password; Required for the operations Verify and VerifyAndReplace

Possible values: Any salted BCrypt hash

newclearText

New plain text password; Only required for the operation VerifyAndReplace

Possible values: Any string, e. g. MyPassword

(info) The parameter must not be empty.

Status values

1

The operation was executed successfully and the output contains an XML file with the result

0

Operations Verify and VerifyAndReplace: the parameter bcryptHash does not correspond to the clearText string

-1

An error occurred during the operation's execution

  • The requited parameters are not specified
  • Operations Verify and VerifyAndReplace: the parameter bcryptHash does not contain a salted BCrypt hash

Input

The adapter does not expect an input for any operation.

Output

Depending on the operation, the adapter outputs different results:

  • Operations GenerateHash and VerifyAndReplace: XML file with the salted hash
  • Operation Verify: XML file with the result whether the salted hash matches the plain text password
  • Operation VerifyAndReplace (if salted hash does not match the plain text password): XML file with the result that the salted hash does not match the plain text password 
  • XML file with error messages

Sample output

XML
<?xml version="1.0" encoding="UTF-8"
<Hash>$2a$10$EcgngKl9hSlppvEcDspLzeq.9Blqim1SFNVzY6tbn5ixTZFMh4xs</Hash>
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.