cutcutcodec.core.generation.audio.noise.md5
- cutcutcodec.core.generation.audio.noise.md5(string: ndarray) ndarray[source]
Vectorised version of the md5 algorithm.
Parameters
- stringnp.ndarray
The values to hash, of shape (16, n) and dtype uint32.
Returns
- hashtuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray]
The hashed value of the input string, of shape (n,). Fours differents 32 bits values ares yields, total 128 bits.
Examples
>>> import numpy as np >>> from cutcutcodec.core.generation.audio.noise import md5 >>> string = np.zeros((16, 1), dtype=np.uint32) >>> np.vstack(md5(string)) array([[1543640769], [2049272632], [1899532917], [2915357108]], dtype=uint32) >>>