mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
Begin implementing JavaScript Crypto API, add basic Uint8Array methods.
This commit is contained in:
parent
3e8063c2c7
commit
9ed0fadd24
3 changed files with 82 additions and 0 deletions
|
@ -27,10 +27,16 @@ func init() {
|
|||
plugin.Defines["log_error"] = log_error
|
||||
plugin.Defines["log_fatal"] = log_fatal
|
||||
|
||||
plugin.Defines["Crypto"] = map[string]interface{}{
|
||||
"sha1": cryptoSha1,
|
||||
}
|
||||
|
||||
plugin.Defines["btoa"] = btoa
|
||||
plugin.Defines["atob"] = atob
|
||||
plugin.Defines["gzipCompress"] = gzipCompress
|
||||
plugin.Defines["gzipDecompress"] = gzipDecompress
|
||||
plugin.Defines["textEncode"] = textEncode
|
||||
plugin.Defines["textDecode"] = textDecode
|
||||
|
||||
plugin.Defines["httpRequest"] = httpRequest
|
||||
plugin.Defines["http"] = httpPackage{}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue