wwEncryption::SetEncryptionProvider

Sets the two-way encryption provider used for EncryptString() and DecryptString() as well as whether to optional encode the encryption key with MD5.

MD5 encoding is an optional feature and should only be used if that's required by your provide or if you are two way converting just with this library.

o.SetEncryptionProvider(lcProvider,llUseMd5Hashkey)

Parameters

lcProvider
Determines the Crypto provider used to encrypt and decrypt with.

  • TripleDES (default)
  • AES

llUseMd5Hashkey
Also allows you to specify whether the encryptionKey passed to these methods is MD5 hashed to provide a fixed key length (which is common for these symetric algos). It's .T. by default. If the value is .F. it means you need to provide a key string of the exact length for the provider, which is 32 ASCII characters.


See also:

Class wwEncryption

© West Wind Technologies, 2023 • Updated: 08/14/21
Comment or report problem with topic