<doc>
	<legacy_id></legacy_id>
	<name>decrypt using rsa</name>
	<type>command</type>

	<syntax>
		<example>decrypt <i>source</i> using rsa with {public | private} key <i>key</i> [and passphrase <i>passphrase </i>]</example>
	</syntax>

	<synonyms>
	</synonyms>

	<summary></summary>

	<examples>
<example>decrypt tMessage with public key tPublicKey</example>
<example>decrypt field 1 with private key tPrivateKey</example>
	</examples>

	<history>
		<introduced version="4.6">Added.</introduced>
		<deprecated version=""></deprecated>
		<removed version=""></removed>
		
		<experimental version=""></experimental>
		<nonexperimental version=""></nonexperimental>
	</history>

	<objects>
	</objects>

	<platforms>
		<mac/>
		<windows/>
		<linux/>
		<ios/>
		<android/>
	</platforms>

	<classes>
		<desktop/>
		<server/>
		<web/>
		<mobile/>
	</classes>

	<security>
		<network/>
	</security>


	<classification>
	</classification>

	<references>
		<command tag="encrypt">encrypt Command</command>
		<command tag="decrypt">decrypt Command</command>
		<command tag="encrypt using rsa">encrypt using rsa Command</command>
	</references>

	<description>
	<overview>Use the <b>decrypt using rsa</b> command to decrypt a message using RSA public key encryption.</overview>

		<parameters>
  <parameter>The <i>message</i> is the message to be decrypted</parameter>
  <parameter>The <i>key</i> is the key to be used for the decryption, in PEM format</parameter>
  <parameter>The <i>passphrase </i>is an optional passphrase</parameter>		</parameters>

	<value></value>
	<comments>Use the form<p>&#9;decrypt <i>message</i> with private key <i>key</i></p><p>to decode a message that a sender has encrypted with its corresponding public key.</p><p></p><p>Use the form</p><p>&#9;decrypt <i>message</i> with public key <i>key</i></p><p>to verify that a message has been encoded with the corresponding private key, and there has come from one of its holders (this is a verify operation).</p><p></p><p><b>Generating key pairs</b></p><p>Public-private key pairs can be generated using the OpenSSL suite of command-line tools. For example:</p><p>&#9;openssl genrsa -out private_key.pem 512</p><p>&#9;openssl rsa -pubout -in private_key.pem -out public_key.pem</p><p>Will generate a key pair of size 512-bits, placing the private key in private_key.pem and the public key in public_key.pem.</p><p></p><p>For more information on these utilities see http://www.openssl.org/docs/apps/rsa.html and http://www.openssl.org/docs/apps/genrsa.html.</p></comments>
	</description>
</doc>