Crypto Misc

Invoke the bcrypt-pw operation

Encode password using bcrypt password-hashing function version 2y

SecurityaccessToken
Request
Request Body schema:
password
required
string
Responses
200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

503

Service Unavailable (strongbox sealed)

post/v1/state/strongbox/crypto-functions/bcrypt-pw
Request samples
password: verysecret
Response samples
hash: $2y$05$yBvWLrn/ks2sg3x6X5rUeegEmbqswgA/wqLR1b0yrNXMv4o3f3Ah6

Invoke the bcrypt-verify operation

SecurityaccessToken
Request
Request Body schema:
password
required
string
hash
required
string
Responses
200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

503

Service Unavailable (strongbox sealed)

post/v1/state/strongbox/crypto-functions/bcrypt-verify
Request samples
password: hej hop
hash: $2y$05$yBvWLrn/ks2sg3x6X5rUeegEmbqswgA/wqLR1b0yrNXMv4o3f3Ah6
Response samples
valid: true

Invoke the hash-data operation

SecurityaccessToken
Request
Request Body schema:
text
required
string <plaintext>
algorithm
string <hmac-digest-type>
Default: "sha256"
  • sha1
  • sha224
  • sha256
  • sha384
  • sha512
  • sha3-224
  • sha3-256
  • sha3-384
  • sha3-512 Digest types, sha1 should be avoided.
format
string <hex-base-type>
Default: "base64"
  • hex: Encode binary data using hex decimal format, e.g., af:03:ff
  • base64: Encode binary using base64 encoding.
Responses
200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

503

Service Unavailable (strongbox sealed)

post/v1/state/strongbox/crypto-functions/hash-data
Request samples
text: Zm9vIGJhcgo=
algorithm: sha256
format: base64
Response samples
hash: 795b303f69d06b2b3edbded518af4e2f53ea09728ef1d12176839bd840ee2198695e1ccd9f27a2839ef11a774b795a0af944037efcf5b20b243d1f5e86148483

Invoke the random-bytes operation

SecurityaccessToken
Request
Request Body schema:
bytes
required
integer <uint32>
format
string <hex-base-type>
Default: "base64"
  • hex: Encode binary data using hex decimal format, e.g., af:03:ff
  • base64: Encode binary using base64 encoding.
Responses
200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

503

Service Unavailable (strongbox sealed)

post/v1/state/strongbox/crypto-functions/random-bytes
Request samples
bytes: 32
format: base64
Response samples
bytes: NA++lSxaE4zdQwQ1aMHIGQ76vcCvKuFp2n52h0PG7/0=