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

AsymmetricGenerateKey – PB Docs 2019 – PowerBuilder Library

AsymmetricGenerateKey – PB Docs 2019

AsymmetricGenerateKey

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 AsymmetricAlgorithm enumerated type that
specifies the type of asymmetric algorithm.

Values are:

  • RSA! – The Rivest-Shamir-Adleman cryptopsystem

  • DSA! – The Digital Signature Algorithm. It is designed
    to be used in signature, not in encryption and
    decryption.

  • Rabin! – The Rabin Algorithm

len

An integer specifying the key length. Recommended key
length: 512/1024/2048.

privKey

A blob receiving the private key.

pubKey

A blob receiving the public key.

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

This statement generates a public key and a private key.

See also

SymmetricEncrypt

SymmetricDecrypt

SymmetricGenerateKey

AsymmetricEncrypt

AsymmetricDecrypt

AsymmetricSign

AsymmetricVerifySign

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