How to Decrypt a File That Was Encrypted in Blowfish

How to Decrypt a File That Was Encrypted in Blowfish thumbnail
Use Blowfish to decrypt files.

The Microsoft .NET framework provides you with the ability to encrypt and decrypt data using the Blowfish schema. Blowfish is an encryption scheme that protects private information such as financial data, medical records and Social Security information. Blowfish functions encrypt and decrypt files, so you can store information on the server or even the local computer. Use these functions to decrypt a Blowfish file used in the software.

Instructions

    • 1

      Create a variable that sets the Blowfish key. The key is the password to decrypt the file. The following code creates the Blowfish variable and sets it to contain a "mypass" password key:

      Dim pwd As String.
      pwd = "mypass"

    • 2

      Set the key for the encryption object. The encryption object is a variable that contains all the information, such as the decryption password. The following code sets your Blowfish variable and the key for decryption:

      Dim crypt As New Chilkat.Crypt2()
      crypt.SetEncodedKey(pwd,"ascii")

    • 3

      Decrypt your file. Blowfish decrypts the file and saves it to an unencrypted file. The following code decrypts a file named "encrypted.dat" and saves it to a file named "c.txt":

      complete = crypt.CkDecryptFile("encrypted.dat","encrypted.txt")

      The "complete" variable indicates that the decrypt was a success.

    • 4

      Send a message to the software user that the decryption completed successfully. The following code sends a message to the software user:

      MsgBox ("File decrypted")

Related Searches:

References

  • Photo Credit padlocks image by Christopher Hall from Fotolia.com

Comments

You May Also Like

  • Facts About Blowfish

    The blowfish is part of the Tetraodontidae family, which includes over 120 species known, among others, as puffers, blowfish and toadfish. For...

  • Public Key Methods of Encryption

    Public key cryptography (PKC) uses two keys, a private and a public key, to encrypt messages. PKC implements encryption algorithms that depend...

  • How to Decrypt a Zip File

    Zip file is a data compression and archive format. The file size is compressed in order to save storage space and allow...

  • How to Encrypt & Decrypt a File

    The information age has led to large amounts of private information being stored on home computers. Protecting this information is vital to...

  • How to Encrypt or Decrypt a Folder or File

    Encryption transforms a file to make it unreadable by others. It has been long used by military and government institutions to protect...

  • How to Decrypt Encrypted Files

    Windows 7 lets you password protect and encrypt file data on your hard drive. This means that anyone using your computer or...

  • How to Decrypt Files in Windows XP

    The ability to encrypt and decrypt files and folders was introduced in Windows XP and Windows 2000. In order to encrypt files,...

  • How to Decrypt a PDF File

    Adobe Acrobat (full version) is the global standard and the official application for Portable Document Format (PDF) document creation and modification. Using...

  • How do I Decrypt a File Using My Computer?

    Windows contains numerous features that allow you to protect and secure your files. Encryption is the most secure way to protect your...

Related Ads

Featured