@Unstable(value="New API introduced in 1.3")
@Role
public interface CryptoUtils
| Modifier and Type | Method and Description |
|---|---|
String |
decryptWithSystemKey(String encryptedMessage)
Decrypt a message using the system-wide encryption key.
|
String |
digest(String message)
Compute a strong digest (one-way hash) of a message.
|
String |
encryptWithSystemKey(String message)
Encrypt a message using the system-wide encryption key.
|
boolean |
validateDigest(String message,
String digest)
Check that a given message does match a previously computed digest.
|
String encryptWithSystemKey(String message)
message - the message to encrypt; may be nullnull if the input message was nullString decryptWithSystemKey(String encryptedMessage)
encryptedMessage - the message to decrypt; may be nullnull if the input message was nullString digest(String message)
message - the message to digest; may be nullnull if the input message was nullboolean validateDigest(String message, String digest)
message - the message to validate; may be nulldigest - a previously computed digest; may be nulltrue if the message is not null and matches the digest, false otherwiseCopyright © 2011–2018 University of Toronto, Computational Biology Lab. All rights reserved.