PGPnet ezKeyGen Method ezPGP for .NET help file
Generate PGP key pair

Namespace: com.asiapeak.ezpgpnet
Assembly: ezpgpnet (in ezpgpnet.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public int ezKeyGen(
	string usrName,
	string eMail,
	string keyType,
	int keyLen,
	int days,
	string pwd
)

Parameters

usrName
Type: System String
Key name or user name
eMail
Type: System String
eMail
keyType
Type: System String
key type, must be "RSA" or "DSA"
keyLen
Type: System Int32
key length in bits, e.g 1024,2048
days
Type: System Int32
expired dayes, 0 is never expired
pwd
Type: System String
password

Return Value

Type: Int32
0 is success, others are failed
See Also