IHostAzure.com | Cheap and Reliable Persits ASPEncrypt Hosting. This article introduction about Persits ASPEncrypt and how to install it. let me to show you.
What is ASPEncrypt ?
ASPEncrypt is an ActiveX server component that brings security to your ASP or .NET application through encryption. With ASPEncrypt, you can encrypt text and files, send certificate-based secure mail, compute one-way hash values, generate and verify digital signatures, issue and manage X.509 digital certificatesAlthough this user manual is written primarily for ASP and ASP.NET developers, ASPEncrypt can be used with any development environment supporting COM, such as VB, Access, SQL Server, PHP, etc.
Feature
- Easy, intuitive programming interface, most tasks can be implemented in just a few lines of script.
- Encrypts text and files with all major symmetric ciphers: RC2, RC4, DES, Triple-DES, AES.
- Encryption keys can be created randomly, generated from a password, or imported from an external source.
- Ability to specify an initialization vector (IV), cipher mode and padding.
- Computes one-way hash functions of text and files. All major hash functions are supported: MD4, MD5, SHA, SHA256.
- Encrypts files as they are being uploaded, and decrypts files as they are being downloaded, when used in conjunction with AspUpload.
- Sends certificate-based secure email in S/MIME format when used in conjunction with AspEmail. Email can be encrypted, digitally signed, or both.
- Creates and manages digital certificates. Can be used to set up a local certification authority.
- Manages certificate stores.
- Supports the .cer, .spc and .pfx (.p12) certificate and store formats.
- Creates and verifies digital signatures in PKCS#1 and PKCS#7 formats.
- Encrypts (decrypts) data directly with a digital certificate’s public (private) key.
- Supports PKCS#7-based signatures and envelopes.
- Can be use as a client-side ActiveX control to perform cryptographic functions on a user machine without needing additional licenses.
System Requirements
- Windows NT • 2000 • XP • 2003 • Vista • 2008 • 7 • 2012 • 8;
- IIS with ASP or ASP.NET, or
- Any development environment supporting COM.
Installation & Expiration Mechanism
The ASPEncrypt component consists of a single file, aspencrypt.dll (or, in case of the 64-bit version, aspencrypt64.dll). Being a COM object, this DLL needs to be registered on the server. The installer aspencrypt.exe (aspencrypt64.exe) performs the registration automatically. If manual installation is needed, the DLL must be registered with regsvr32.
To use ASPEncrypt under .NET, the interop assembly ASPENCRYPTLib.dll (shipped with the component) needs to be placed in the /Bin subfolder of the application. The main DLL aspencrypt.dll still needs to be properly registered.
ASPEncrypt works for 30 days without a registration key, and throws an expiration error afterwards. The purchased key needs to be placed in the system registry, as the default value, under
HKEY_LOCAL_MACHINE\Software\Persits Software\AspEncrypt\RegKey
If the 32-bit version of AspEncrypt is run on the 64-bit version of Windows, the key should be placed under
HKEY_LOCAL_MACHINE\Software\Wow6432Node\Persits Software\AspEncrypt\RegKey
Alternatively, the registration key can be specified in your code via the RegKey property of the top-level CryptoManager object, as follows:
Set CM = Server.CreateObject(“Persits.CryptoManager”)
CM.RegKey = “12345-12345-12345”
The current expiration date of the component can be retrieved via the Expires property, as follows:
Set CM = Server.CreateObject(“Persits.CryptoManager”)
Response.Write CM.Expires
If this property returns 9/9/9999 it means a permanent registration key is being used.
Quick Start
The following code sample encrypts and decrypts a text string using a password-based symmetric key.
At first, the top-level CryptoManager object is created, which serves as an object factory for all other AspEncrypt objects. Then a cryptographic context is opened via the method OpenContext. An instance of the CryptoContext object encapsulates the handle to a cryptographic provider, a Windows library that actually contains the cryptographic functionality we need (in this case, symmetric encryption.) The OpenContext method and cryptographic providers will be covered in detail in the next chapter.
Using CryptoContext, an instance of the CryptoKey object is then created via the method GenerateKeyFromPassword. CryptoKey encapsulates symmetric encryption and decryption functionality via the methods EncryptText and DecryptText, among others.
Once text is encrypted, it becomes an unreadable binary sequence. To store, export and import binary data, AspEncrypt offers a special object, CryptoBlob. An instance of CryptoBlob is the return value of the EncryptText method, and the input argument to the DecryptText method. An empty CryptoBlob object can be created via CryptoManager’s CreateBlob method.
VBScript
Set CM = Server.CreateObject("Persits.CryptoManager")
Set Context = CM.OpenContext( "", True )
' Create key from a password. Use default hash, cipher, and key size.
Set Key = Context.GenerateKeyFromPassword("mypassword")
Text = "my secret text"
Response.Write "Original text: " & Text
' Encrypt
Set Blob = Key.EncryptText( Text )
Response.Write "<P>Encrypted text in Base64 format: " & Blob.Base64
' Decrypt
Set Blob2 = CM.CreateBlob
Blob2.Base64 = Blob.Base64
ClearText = Key.DecryptText( Blob2 )
Response.Write "<P>Decrypted text: " & ClearText
C#
<%@ Import Namespace="System.Web" %>
<%@ Import Namespace="System.Reflection" %>
<%@ Import Namespace="ASPENCRYPTLib" %>
<script language="c#" runat="server">
void Page_Load(Object Source, EventArgs E)
{
ICryptoManager objCM = new CryptoManager();
ICryptoContext objContext = objCM.OpenContext( "",
true, Missing.Value );
// Create key from a password. Use default hash, cipher, and key size
ICryptoKey objKey = objContext.GenerateKeyFromPassword("mypassword",
Missing.Value, Missing.Value, Missing.Value);
String strText = "my secret text";
txtResult.Text = "Original text: " + strText;
// Encrypt
ICryptoBlob objBlob = objKey.EncryptText( strText );
txtResult.Text += "<P>Encrypted text in Base64 format: " + objBlob.Base64;
// Decrypt
ICryptoBlob objBlob2 = objCM.CreateBlob();
objBlob2.Base64 = objBlob.Base64;
String strClearText = objKey.DecryptText( objBlob2 );
txtResult.Text += "<P>Decrypted text: " + strClearText;
}
</script>
<asp:Label runat="server" id="txtResult"/>
Best Recommendation Persits ASPEncrypt Hosting
ASPHostPortal.com
ASPHostPortal.com is Cheap and Reliable Persits ASPEncrypt Hosting. ASPHostPortal is the leading provider of Windows hosting and affordable ASPEmail hosting. ASPHostPortal.com offers Persits ASPEncrypt hosting! You can always start from their Beginner Hosting Plan (from $5.00 /month) to get this application installed on your website. ASPHostPortal.com is now providing free domain and double SQL server space for new clients to enjoy the company’s outstanding web hosting service. ASPHostPortal proudly working to help grow the backbone of the Internet, the millions of individuals, families, micro-businesses, small business, and fledgling online businesses. ASPHostPortal has ability to support the latest Microsoft and ASP.NET technology, such as: WebMatrix, WebDeploy, Visual Studio 2015, .NET 5/ASP.NET 4.5.2, ASP.NET MVC 6.0/5.2, Silverlight 6 and Visual Studio Lightswitch, ASPHostPortal guarantees the highest quality product, top security, and unshakeable reliability, carefully chose high-quality servers, networking, and infrastructure equipment to ensure the utmost reliability.
DiscountService.biz
DiscountService.biz is The Best and Cheap Persits ASPEncrypt hosting. DiscountService.biz was established to cater to an under served market in the hosting industry web hosting for customers who want excellent service. DiscountService.biz guarantees the highest quality product, top security, and unshakeable reliability, carefully chose high-quality servers, networking, and infrastructure equipment to ensure the utmost reliability. DiscountService.biz has ability to support the latest Microsoft and ASP.NET technology, such as: WebMatrix, WebDeploy, Visual Studio 2015, .NET 5/ASP.NET 4.5.2, ASP.NET MVC 6.0/5.2, Silverlight 6 and Visual Studio Lightswitch. DiscountService.biz is devoted to offering the best Persits ASPEmail hosting hosting solution for you.
UKWindowsHostASP.NET
UKWindowsHostASP.NET offers cheap classic ASP With Persits ASPEncrypt Hosting to all new and existing UK customers. You can try they services before buy it.There’s no obligation to buy — you can upgrade to a more robust account or cancel at any time. UKWindowsHostASP.NET guarantees 99.9% uptime for their professional ASPEmail hosting and actually implements the guarantee in practice. UKWindowsHostASP.NET is the service are excellent and the features of the web hosting plan are even greater than many hosting. UKWindowsHostASP.NET offer IT professionals more advanced features and the latest technology. Relibility, Stability and Performance of servers remain and TOP priority.