![]() ![]() These are the other Javascript files included in this repository: ![]() The following are public methods on the Base32 module:ĭecode str from Base32 into its original string. If data is malformed, an exception is thrown.Įncode/decode a string using the RFC 4648 Base32 format. decode(str) : Ĭonverts Bencoded str back into its original type.Arrays and objects can also only contain the aforementioned types. Obj can only be a string, number, array, or object. The following are public methods on the Bencode module: 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |