Encrypts the specified text.

Syntax

ISEncryption.Encrypt(value, key, [saltKey])

Parameters

NameTypeOptionalByRefDescription
value String Text to Encrypt.
key String Key used to Encrypt.
saltKey String Optional Key used in conjunction with key to generate the actual password to encrypt with

Return Value

String

Encrypted value formatted as a base64-encoded string. Length (all ASCII under 128); 1-15=24 bytes, 16-31=44 bytes, 32-47=64 bytes, 48-63=88 bytes + base64 = ((Bytes + 3 - (Bytes MOD 3)) / 3) * 4, ie round up to next multiple of 3 bytes and multiply by 4/3 + overhead of up to 20 bytes Length, as Value converted to UTF8, can be 2-4 times large for unicode characters

Member of:
ISEncryption
Namespace:
Intersoft.ISRuntime6
Assembly:
ISRuntime6, Version=6.0.3
Target Framework:
.NET 9.0