W3cubDocs

/Haxe Python

Hashlib

package python.lib

Available on python

Static variables

staticread onlyalgorithms_available:Set<String>

A set containing the names of the hash algorithms that are available in the running Python interpreter. These names will be recognized when passed to new(). algorithms_guaranteed will always be a subset. The same algorithm may appear multiple times in this set under different names (thanks to OpenSSL).

staticread onlyalgorithms_guaranteed:Set<String>

A set containing the names of the hash algorithms guaranteed to be supported by this module on all platforms. Note that ‘md5’ is in this list despite some upstream vendors offering an odd “FIPS compliant” Python build that excludes it.

Static methods

staticblake2b():HashlibHash

staticblake2s():HashlibHash

staticmd5():HashlibHash

staticnew_(name:String, ?data:Bytes):HashlibHash

A generic constructor that takes the string name of the desired algorithm as its first parameter. It also exists to allow access to the above listed hashes as well as any other algorithms that your OpenSSL library may offer. The named constructors are much faster than new() and should be preferred.

staticsha1():HashlibHash

staticsha224():HashlibHash

staticsha256():HashlibHash

staticsha384():HashlibHash

staticsha3_224():HashlibHash

staticsha3_256():HashlibHash

staticsha3_384():HashlibHash

staticsha3_512():HashlibHash

staticsha512():HashlibHash

staticshake_128():HashlibHash

staticshake_256():HashlibHash

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/python/lib/Hashlib.html