SHA1OpenNURBS
SHA1HashAlgorithmProvides the OpenNURBS implementation of SHA1.
This class is provided only with the purpose of hashing. It is not meant to be used for any cryptographic purpose.
Constructors
Finalizer
~SHA1OpenNURBS
#Instructs the runtime to reclaim unmanaged resources if the developer forgot to call Dispose().
~SHA1OpenNURBS()
Methods
Dispose
#Reclaims unmanaged resources used by this instance, and invalidates the instance. After calling this method, all other methods will always call ObjectDisposedException.
Overrides: HashAlgorithm.Dispose
FileSystemPathHash
#Computes the SHA1 hash of a file system path, converted to UTF8.
These file system paths have identical values of FileSystemPathHash():
/x/y/z/name.ext
\x\y\z\name.ext
/x//y//z/name.ext
/x/y/a/b/c/../../../z/name.ext
/X/Y/Z/NAME.EXT (When ignoreCase is true)
Returns: A 20-byte long SHA1 hash.
Exceptions:
| ArgumentNullException | When input is null. |
HashFinal
#Returns the currently computed hash.
Returns: The final hash.
Overrides: HashAlgorithm.HashFinal
Resets this instance of the algorithm, so that it can be used again. It is not required to call this method after creation.
public override void Initialize()
Overrides: HashAlgorithm.Initialize
Computes the SHA1 hash of a string, converted to UTF8.
Returns: A 20-byte long SHA1 hash.
Exceptions:
| ArgumentNullException | When input is null. |