Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

SymmetricGenerateKey – PB Docs 2022 – PowerBuilder Library

SymmetricGenerateKey – PB Docs 2022

SymmetricGenerateKey

PowerScript function

Description

Generates a secret key for asymmetric algorithm.

Applies to

CrypterObject objects

Syntax

Argument

Description

crypter

The name of the CrypterObject object.

algorithm

A value of the SymmetricAlgorithm enumerated type that
specifies the type of symmetric algorithm.

Values are:

  • AES! – The Advanced Encryption Standard

  • DES! – The Data Encryption Standard

  • TDES! – The Triple-DES

  • DESX! – The DES-XEX3

  • Blowfish! – The Blowfish

len

An integer value specifying the key length.

Values are:

  • The value can be 16, 24, or 32 with AES

  • The value must be 8 with DES

  • The value can be 16 or 24 with TDES

  • The value must be 24 with DESX

  • The value can range from 4 to 56 with Blowfish

key

A blob specifying the secret key.

The length of the secret key can be 128 bits, 192 bits,
256 bits with AES.

The length of the secret key must be 64 bits with
DES.

The length of the secret key can be 128 bits, 192 bits
with TDES.

The length of the secret key must be 192 bits with
DESX.

The length of the secret key can range from 32 bits to 448
bits with Blowfish.

Return value

Integer. Returns 1 if it succeeds and -1 if it failed. If any
argument’s value is null, the method returns null. If an error occurs,
throw the exception.

Examples

See also

SymmetricDecrypt

SymmetricEncrypt

AsymmetricEncrypt

AsymmetricDecrypt

AsymmetricSign

AsymmetricVerifySign

AsymmetricGenerateKey

MD5

SHA

HMAC


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x