Lasso Soft Inc. > Home

[ cipher_encryptprivate ]

Method

This method accepts four parameters:

  • Private key data as a bytes object
  • The passphrase for the private key, or empty bytes if there is no passphrase
  • The bytes data to encrypt
  • An optional padding integer; default value is 4 (RSA_PKCS1_OAEP_PADDING)

The method returns the encrypted bytes data.

  • Syntax
cipher_encryptPrivate(privateKey::bytes, 
	passphrase::bytes, 
	toEncrypt::bytes,
	padding::integer = 4)::bytes
Examples

No examples found

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft