pandect.algo.sha256

SHA-256 algorithm implementation

sha256

(sha256 x)
[Hash] SHA-256 (value -> string)

sha256*

(sha256* x)
[Hash] SHA-256 (raw value)

sha256-bytes

(sha256-bytes x)
[Hash] SHA-256 (value -> byte array)

sha256-file

(sha256-file x)
[Hash] SHA-256 (file path -> string)

sha256-file*

(sha256-file* x)
[Hash] SHA-256 (raw value)

sha256-file-bytes

(sha256-file-bytes x)
[Hash] SHA-256 (file path -> byte array)

sha256-hmac

(sha256-hmac x secret)
[HMAC] HmacSHA256 (value -> string)

'secret' can be given as a byte array, string, java.io.File, java.io.InputStream
or any value implementing `pandect.utils.convert/ByteConvertable`.

sha256-hmac*

(sha256-hmac* x secret)
[HMAC] HmacSHA256 (raw value)

'secret' can be given as a byte array, string, java.io.File, java.io.InputStream
or any value implementing `pandect.utils.convert/ByteConvertable`.

sha256-hmac-bytes

(sha256-hmac-bytes x secret)
[HMAC] HmacSHA256 (value -> byte array)

'secret' can be given as a byte array, string, java.io.File, java.io.InputStream
or any value implementing `pandect.utils.convert/ByteConvertable`.

sha256-hmac-file

(sha256-hmac-file x secret)
[HMAC] HmacSHA256 (file path -> string)

'secret' can be given as a byte array, string, java.io.File, java.io.InputStream
or any value implementing `pandect.utils.convert/ByteConvertable`.

sha256-hmac-file*

(sha256-hmac-file* x secret)
[HMAC] HmacSHA256 (raw value)

'secret' can be given as a byte array, string, java.io.File, java.io.InputStream
or any value implementing `pandect.utils.convert/ByteConvertable`.

sha256-hmac-file-bytes

(sha256-hmac-file-bytes x secret)
[HMAC] HmacSHA256 (file path -> byte array)

'secret' can be given as a byte array, string, java.io.File, java.io.InputStream
or any value implementing `pandect.utils.convert/ByteConvertable`.

sha256-rsa

(sha256-rsa x private-key)
[Signature] SHA256withRSA (value -> string)

Sign the given message using the given java.security.PrivateKey.

sha256-rsa*

(sha256-rsa* x private-key)
[Signature] SHA256withRSA (raw value)

Sign the given message using the given java.security.PrivateKey.

sha256-rsa-bytes

(sha256-rsa-bytes x private-key)
[Signature] SHA256withRSA (value -> byte array)

Sign the given message using the given java.security.PrivateKey.

sha256-rsa-file

(sha256-rsa-file x private-key)
[Signature] SHA256withRSA (file path -> string)

Sign the given message using the given java.security.PrivateKey.

sha256-rsa-file*

(sha256-rsa-file* x private-key)
[Signature] SHA256withRSA (raw value)

Sign the given message using the given java.security.PrivateKey.

sha256-rsa-file-bytes

(sha256-rsa-file-bytes x private-key)
[Signature] SHA256withRSA (file path -> byte array)

Sign the given message using the given java.security.PrivateKey.

sha256-rsa-verify

(sha256-rsa-verify x signature public-key)
[Signature] SHA256withRSA

Verify the given message signature using the given public key (anything implementing `pandect.utils.convert/PublicKeyConvertable`)

The signature can be given as a byte array, hex (!) string, java.io.File,
java.io.InputStream or anything implementing `pandect.utils.convert/ByteConvertable`.

sha256-rsa-verify-file

(sha256-rsa-verify-file x signature public-key)
[Signature] SHA256withRSA

Verify the given message signature using the given public key (anything implementing `pandect.utils.convert/PublicKeyConvertable`)

The signature can be given as a byte array, hex (!) string, java.io.File,
java.io.InputStream or anything implementing `pandect.utils.convert/ByteConvertable`.