BenSelect Documentation
DecryptData Method
See Also  Send Feedback
Selerix.Foundation.Interfaces Namespace > ISecurityService Interface : DecryptData Method
data
Encrypted data.
tryDES
Try to decrypt with DES algorithm.
try3DES
Try to decrypt with 3DES algorithm.
dek
Encryption key. If provided disables DES and 3DES.
Decrypts encrypted data.

Syntax

JScript 
function DecryptData( 
   data : String,
   tryDES : boolean,
   try3DES : boolean,
   dek : byte[]
) : String;

Parameters

data
Encrypted data.
tryDES
Try to decrypt with DES algorithm.
try3DES
Try to decrypt with 3DES algorithm.
dek
Encryption key. If provided disables DES and 3DES.

Return Value

Decrypted string.

Exceptions

ExceptionDescription
Selerix.Foundation.SelerixException SECURITY: Encrypted string has not parsable data encryption key id. or SECURITY: Couldn't decrypt data.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2024 All Rights Reserved.