Location: PHPKode > scripts > TA_OpenSSL > ta_openssl/openssl_test.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>

	<head>
		<title>TA OpenSSL Example</title>
    <style type="text/css" >
    body {
  background-color: white;
}

form {
  border: 4px #5281d8 double;
  background-color: #efefef;
  padding: 15px;
}

button {
  margin-top: 15px;
}

div.input-field {
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 5px;
}

input.text {
  display: block;
}

label {
  font-size: 0.9em;
  font-weight: bold;
}

fieldset {
  border-top: 3px #81a3e2 double;
  border-left: none;
  border-right: none;
  border-bottom: none;
  padding-bottom: 15px;
}

legend {
  font-weight: bold;
  font-size: 1.1em;
  letter-spacing: 3px;
  font-style: italic;
}

div.fieldset-description p {
  display: list-item;
  white-space: normal;
  list-style-type: disc;
  list-style-position: inside;
}

div.fieldset-description {
  margin-top: 15px;
  font-size: 0.85em;
}

a:link {
  text-decoration: none;
  font-size: 1em;
  color: #0080ff;
}

a:visited {
  text-decoration: none;
  font-size: 1em;
  color: #0080ff;
}

a:hover {
  text-decoration: none;
  font-size: 1em;
  color: #df4800;
}

a:active {
  text-decoration: none;
  font-size: 1em;
  color: #0080ff;
}
</style>
  </head>
	
	<body>
	
		<form action="openssl_test.php" method="post">
		<div align="center"><a href="README_ENCRYPT.txt">README.TXT</a></div>
		<div align="center"><a href="http://www.terraaccess.com/docs/ta_openssl">API Documentation</a></div>
		<fieldset>
			<legend>Data to Encrypt:</legend>
			<div class="fieldset-description">
				<h4>The size of your data to encrypt is limited by the bits of your private key.</h4>
				<h4>Assuming a private key size of 2048 bits:</h4>
               <p>bytes - 11</p>
               <p>2048 bits / 8 bits per byte = 256 bytes</p>
               <p>256 - 11 = 245 byte Maximum size of data to encrypt</p>
			</div>
			<div class="input-field">
				<textarea name="encrypt_string" rows="5" cols="73">411111111111-09/2004</textarea>
			</div>
		</fieldset>
		
		<fieldset>
			<legend>Passphrase:</legend>
			<div class="fieldset-description">
				My 'Private Test Key' Passphrase is set to 'testing'
			</div>
			<div class="input-field">
				<input class="text" type="text" name="passphrase" value="testing" size="24" border="0">
			</div>
		</fieldset>
		
		<fieldset>
			<legend>Key Files:</legend>
			<div class="fieldset-description">
				This must be the local path on the server where the program is
				installed. I just included them here because it made it easier 
				to test my error checking.
			</div>
			
			<div class="input-field">
				<label for="private_key">
					Private Key File:
				</label>
				<input class="text" type="text" name="private_key" value="./privkey_test.pem" size="100" border="0">
			</div>
			
			<div class="input-field">
				<label for="public-key">
					Public Key File:
				</label>
				<input class="text" type="text" name="public_key" value="./cacert_test.pem" size="100" border="0">
			</div>
			</fieldset>
			
			<fieldset>
				<p>
					<button type="submit">Do It</button>
				</p>
			</fieldset>
			
		</form>
		
	</body>

</html>		
Return current item: TA_OpenSSL