
Crypt::InitializeKey
Crypt::InitializeKey returns the value of the cos decimal.
public Crypt::InitializeKey( Integer keyType, Strcuture parameters : OSHandle handle );
Parameters
| keyType | one of Crypt::HASH_SHA1, Crypt::HMAC_SHA1 or Crypt::HASH_SHA256 |
| parameters | for Crypt::HMAC_SHA1, parameters["SecretKey"] is required. |
| handle | To keep track of the crypt context. |
Return Values
The error.errorCode value will be set to the underlining windows error message code and the error.errorString will have a detailed description of the error.
Remarks
Example Use
- TScript
main(){
OSHandle handle = Crypt::InitializeKey(Crypt::HASH_SHA1);
WString cacheName = System::GetTempPath()
+ Crypt::Transform(handle, URL.AString())
.ToString(TVariable::HEXADECIMAL)
+ u".cache";
}Requirements
TScript Version: 1.6
Also See
Crypt::Randomize, Crypt::TransformListen All
Comments (0)

