Home    XP_CRYPT Online Help Prev Next
How To use XP_CRYPT GUI
Introduction
What is XP_CRYPT
System requirements
Free version limitations
End user license agreement
Installing XP_CRYPT
Installation procedure
Activation
XP_CRYPT API
What's new
Encryption methods overview
Session
xp_crypt_set_var
xp_crypt_get_var
xp_crypt_close_session
xp_crypt_init_session
xp_crypt_set_option
Asymmetric keys
DSA
xp_dsa_free_key
xp_dsa_load_key
xp_dsa_save_key
xp_dsa_generate_couple
RSA
xp_rsa_generate_couple
xp_rsa_generate_pub_key
xp_rsa_load_key
xp_rsa_priv_dec
xp_rsa_pub_enc
xp_rsa_save_key
xp_rsa_free_key
Digital signatures
DSA
xp_dsa_verify
xp_dsa_sign
RSA
xp_rsa_sign
xp_rsa_verify
Hashing
xp_crypt
xp_md5
xp_sha1
Symmetric encryption
AES128
xp_aes128_decrypt
xp_aes128_encrypt
AES
xp_aes_decrypt
xp_aes_encrypt
DESX
xp_desx_decrypt
xp_desx_encrypt
RC4
xp_rc4_decrypt
xp_rc4_encrypt
Triple DES
xp_des3_encrypt
xp_des3_decrypt
Error codes
Tutorial
How to use GUI
Advanced technique (Old)
Table encryption (Old)
Troubleshooting
Troubleshooting overview

xp_rsa_generate_pub_key

This function takes the private key source, generates a new public key and returns its handle. This function is useful when you do not have or lost your public key and want to generate it from the private key. 

Syntax

xp_rsa_generate_pub_key  { key_src , public_key OUTPUT, [ src_password ]}

Arguments

key_src

VARCHAR. This parameter can be a key handle, a file name or key body. If you want to specify the file name, precede the file name with '<' char. For example, if your key is stored in the file c:\privatekey.pem set this parameter to '<c:\privatekey.pem'. 

public_key

VARCHAR. On success this variables holds the newly created public key.

src_password

VARCHAR. This parameter is optional. It is a password which is used for reading the source key if you specify the filename or the key body in key_src

Permissions

Execute permissions default to the public role.

Return Code Values

0 - success, or Error code if failed. public_key IS NOT NULL (success) or IS NULL (failure)

Remarks

IF YOU LOOSE YOUR PRIVATE KEY THERE IS NO METHOD TO DECRYPT YOUR DATA

 
2004-2011 (c) Active Crypt Software. All rights reserved.

Browser Based Help. Published by chm2web software.