The return value is a Uint8Array of length 20.Įncode/decode an object or string using the Bencode format. Ĭomputes and returns the SHA1 digest of all the data input so far. Value_array can be a string, with each character in the range or a ( typed) array, with each value in the range. Update the internal state of the hashing object with the values contained in value_array. Resets the internal state of the instance. The following are public methods on the SHA1 class: Data can be input in chunks, and the digest can be calculated at any point without modifying the internal state. They are primarly designed for web usage, but they can be trivially modified to be used with something such as node.js.Ĭomputes the SHA-1 hash of the specified data using the basic algorithm described in RFC 3174, with a paradigm similar to python's hashlib. base32.js - Base32 encoding/decoding library.bencode.js - Bencode encoding/decoding library.The following Javascript libraries are used on this page:
0 Comments
Leave a Reply. |