buf
@exception DigestException if an error occurs.
Performs a digest operation on a byte array message.
The steps taken for creating the digest are:
If a random salt generator is used, two digests created for the same message will always be different (except in the case of random salt coincidence). Because of this, in this case the result of the digest method will contain both the undigested salt and the digest of the (salt + message), so that another digest operation can be performed with the same salt on a different message to check if both messages match (all of which will be managed automatically by the matches method).
@param message the byte array to be digested @return the digest result @throws EncryptionOperationNotPossibleException if the digest operationfails, ommitting any further information about the cause for security reasons. @throws EncryptionInitializationException if initialization could notbe correctly done (for example, if the digest algorithm chosen cannot be used).Performs a digest operation on a String message.
The steps taken for creating the digest are:
If a random salt generator is used, two digests created for the same message will always be different (except in the case of random salt coincidence). Because of this, in this case the result of the digest method will contain both the undigested salt and the digest of the (salt + message), so that another digest operation can be performed with the same salt on a different message to check if both messages match (all of which will be managed automatically by the matches method).
@param message the String to be digested @return the digest result @throws EncryptionOperationNotPossibleException if the digest operationfails, ommitting any further information about the cause for security reasons. @throws EncryptionInitializationException if initialization could notbe correctly done (for example, if the digest algorithm chosen cannot be used).Configure and perform a digest operation.
@param input @param algorithm @param algorithmEnvName @param algorithmSysPropertyName @param iterations @param iterationsEnvName @param iterationsSysPropertyName @param saltSizeBytes @param saltSizeBytesEnvName @param saltSizeBytesSysPropertyName @param saltGeneratorClassName @param saltGeneratorClassNameEnvName @param saltGeneratorClassNameSysPropertyName @param providerName @param providerNameEnvName @param providerNameSysPropertyName @param providerClassName @param providerClassNameEnvName @param providerClassNameSysPropertyName @param unicodeNormalizationIgnored @param unicodeNormalizationIgnoredEnvName @param unicodeNormalizationIgnoredSysPropertyName @param stringOutputType @param stringOutputTypeEnvName @param stringOutputTypeSysPropertyName @return the result of the digest operation @throws EncryptionOperationNotPossibleException if the operation couldnot be performed (either because of wrong input or wrong parametrization).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|