diff --git a/src/crypto.coffee b/src/crypto.coffee index 3f18f03..4ba1b7a 100644 --- a/src/crypto.coffee +++ b/src/crypto.coffee @@ -6,7 +6,7 @@ fromUtf8Bytes = (bytes) -> new TextDecoder 'utf-8' .decode bytes -hex = (buf) -> (Array.prototype.map.call new Uint8Array(buf), +hex = (buf) -> (Array::map.call new Uint8Array(buf), (x) => ('00' + x.toString 16).slice(-2)).join '' fromHex = (str) ->