|
DataProtectionProtect Method
|
Encrypts the data in a specified byte array and returns a byte array that contains the encrypted data.
Namespace: GSF.Security.CryptographyAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.241-beta+912389e96d98840d2a999d490420db618dcbe4c6
SyntaxGSF.Security.Cryptography.DataProtection.Protect = function(userData, optionalEntropy, scope);
View SourceParameters
- userData Byte
- A byte array that contains data to encrypt.
- optionalEntropy Byte
- An optional additional byte array used to increase the complexity of the encryption, or null for no additional complexity.
- scope DataProtectionScope
- One of the enumeration values that specifies the scope of encryption.
Return Value
ByteA byte array representing the encrypted data.
Exceptions
See Also