Generate PGP key pair
Namespace: com.asiapeak.ezpgpnetAssembly: ezpgpnet (in ezpgpnet.dll) Version: 1.0.0.0 (1.0.0.0)
public int ezKeyGen(
string usrName,
string eMail,
string keyType,
int keyLen,
int days,
string pwd
)
public int ezKeyGen(
string usrName,
string eMail,
string keyType,
int keyLen,
int days,
string pwd
)
Public Function ezKeyGen (
usrName As String,
eMail As String,
keyType As String,
keyLen As Integer,
days As Integer,
pwd As String
) As Integer
Public Function ezKeyGen (
usrName As String,
eMail As String,
keyType As String,
keyLen As Integer,
days As Integer,
pwd As String
) As Integer
public:
int ezKeyGen(
String^ usrName,
String^ eMail,
String^ keyType,
int keyLen,
int days,
String^ pwd
)
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:
Int320 is success, others are failed