Daftar

Free License Component Untuk Encrypt Koneksi Database di App.config atau Web.Config


Programming & Web Coding, web, aplikasi, dan karier developer.

Balas
 
Alat Thread
Badguy13 Badguy13 sedang offline
#1
Ceriwiser Tanggal Bergabung: Nov 2011 Post: 399 Rep Power: 16 Badguy13 mempunyai hidup yang Normal
Default Free License Component Untuk Encrypt Koneksi Database di App.config atau Web.Config




CipherLite.NET� can be used to encrypt and decrypt database connection strings and other sensitive .NET application settings stored in configuration (.config) files. In addition to encryption, CipherLite.NET� provides facilities for hashing data and verifying data hashes.



How does it work?



CipherLite.NET� comes with a GUI tool allowing application administrators to encrypt application settings (the tool can also be used to decrypt data). Once encrypted, application settings can be stored in the application configuration files (Windows� registry or other storage media). Applications can retrieve encrypted values from the configuration files and decrypt them with the help of the CipherLite.NET� library.



In addition to encryption and decryption, CipherLite.NET� offers a capability to generate password (and other) hashes, which can be used for user authentication or other purposes.



Technology



CipherLite.NET� is a .NET application. It encrypts and decrypts data using the Rijndael (AES) symmetric key algorithm, as well as DPAPI. The product supports several hashing algorithms including MD5, SHA-1, SHA-256, SHA-384, SHA-512, HMAC SHA-1, and others.



Sample Penggunaan :



C#




Code:

//
// C# example
//
using System.Configuration;
using Obviex.CipherLite;
...
try
{
// Get base64-encoded ciphertext value.
string configValue;
configValue = ConfigurationSettings.AppSettings["DB"];

// Convert base64-encoded value to byte array.
byte[] cipherText;
cipherText = Encoder.Base64Decode(configValue);

// Decrypt value using DPAPI.
string connString;
connString= Dpapi.Decrypt(cipherText);

// Use decrypted connection string.
...
}
catch (Exception ex)
{
// Process exception.
}

VB.Net




Code:

Imports System.Configuration
Imports Obviex.CipherLite
...
Try
' Get base64-encoded ciphertext value.
Dim configValue As String
configValue = ConfigurationSettings.AppSettings("DB")

' Convert base64-encoded value to byte array.
Dim cipherText As Byte()
cipherText = Encoder.Base64Decode(configValue)

' Decrypt value using DPAPI.
Dim connString As String
connString= Dpapi.Decrypt(cipherText)

' Use decrypted connection string.
...
Catch ex As Exception
' Process exception.
End Try



Mampir Lapak Saya



Butuh Kerjaan Freelance Buat Bertahan Hidup di Jakarta

</div>
Balas


Aturan Posting
Kamu tidak boleh membuat thread baru
Kamu tidak boleh membalas
Kamu tidak boleh mengirim lampiran
Kamu tidak boleh mengedit post kamu

BB code Hidup
Smilie saat ini Hidup
Kode [IMG] adalah Hidup
Kode HTML adalah Mati


Terkait
Thread Pembuat Thread Forum Balasan Postingan Terakhir
Free License Component Untuk Encrypt Koneksi Database di App.config atau Web.Config Braincode Programming & Web 0 11 Nov 2011 02:22 PM