mirror of
https://github.com/emn178/js-sha256.git
synced 2026-08-12 20:32:16 +08:00
Added "hmac" to interface Hash. (#12)
This commit is contained in:
Vendored
+8
@@ -53,6 +53,14 @@ interface Hash {
|
||||
* @param message The message you want to hash.
|
||||
*/
|
||||
update(message: Message): Hasher;
|
||||
|
||||
/**
|
||||
* Computes a Hash-based message authentication code (HMAC) using a secret key
|
||||
*
|
||||
* @param secretKey The Secret Key
|
||||
* @param message The message you want to hash.
|
||||
*/
|
||||
hmac(secretKey: string, message: Message): string;
|
||||
}
|
||||
|
||||
export var sha256: Hash;
|
||||
|
||||
Reference in New Issue
Block a user