How To Encrypt Files
Dec 26, 2011im working on making a password saving program but my problem is that i don't know how to encrypt the files.
View 11 Repliesim working on making a password saving program but my problem is that i don't know how to encrypt the files.
View 11 RepliesI am working on a application that stores videos, images and files. I would like to give the user the possibility to encrypt them. I am tying to use AES to encrypt them but the problem is that the decryption takes to long.I was hoping that the loading time from the hard disk of the encrypted file was far longer than the process of decryption of an image for example but i was wrong
So if i try to 1) load the image 2)decrypt it and 3)load it in a image control it takes 15 times more time that loading the original file not encrypted
So I can encrypt small files using Des Encryption, but whenever I try encrypting large files, The program's memory usage skyrockets! Would anybody be able to get me some code that will let me encrypt large files (It doesn't have to be Des, but I need to be able to support any length password).
View 1 Repliesi am trying to make a small program to encrypt files using AES, and then have the password from the AES encrypted using RSA for its use of public keys. i've got the AES part working fine and i found a good RSA tutorial here url....but after i encrypt the AES password (which is saved in a .txt file) using RSA, then i try to decrypt it again, it comes out as an empty .txt file!
View 4 RepliesI'm designing a program to encrypt and decrypt files using TripleDes Encryption algorithms but am having issues decrypting an image file. The file encrypts in the correct manner, but when I go to decrypt the file and open as an image I get an error message. One example is when trying to open the file in paint a message appears stating 'c:New FolderDecrypted.jpg Paint cannot read this file. This is not a valid bitmap file, or its format is not currently supported. My coding for the form is shown below:
"Imports System.Windows.Forms
Imports System.Security.Cryptography
Imports System.Security
[Code]....
I use this code to create dump files of my database. Now what I want, if possible, is to encrypt it so that when it is viewed in notepad or anything similar, average users cannot read it.
Call isDirectoryExist()
Call createDbBackupName()
Dim myProcess As Process = New Process
Dim strUser As String = "superadmin"
[Code] .....
Of course, if it encrypted, it has to be decrypted before querying the dump file. I have no idea what encryption I can do in vb.net and mysql
I modified my first code
Process.Start("C:/MySQL/bin/mysqldump.exe", " --host=localhost --user='" & strUser & "' --password=1234 """ & strDbName & """ -r """ & strPath & newDBName & """, --cipher /e /a '" & newDBName & "' ")
But the output file contains nothing whatsoever.
Lets get down to it, Basically, I'm making a kind of "Anti-Hack" for a project I'm working on.The basis of the "Anti-Hack" is the check processes for names of known Memory Editors, For example, one memory editor I am scanning for is Cheat Engine.exe, I am using this code to scan for it, then I use the result to activate a different piece of code.
If Process.GetProcessesByName("Cheat Engine").Length = 0 The
'It's OK
Else
<Removed for obvious reasons>
End If
Basically, I don't want my code to look like a library of If statements when the only thing I am changing is the process name, what I want to do, is have an encrypted .dat file with an array or list of known tools. I want to then go through the array/list and keep checking for instances of them running.I know nothing of how to encrypt/decrypt .dat files through VB. (I'm not an expert at it atm )I am open to other ways (Easier ways) of doing this, like a Class with a list of names etc.
**NOTE** I would rather it be a separate file as the program features an Auto-Update feature, so it will be easier to update the list.
**IMPORTANT**Also, I would like to know how to hide my process, so it cant simply be ended, It may sound suspicious but people will be able to just close it and start hacking T_T, Unless there is another way, I would appreciate it (Like making it so it cant be ended etc.)**IMPORTANT.
I'm attempting to create a little library to encrypt and decrypt Files with AES. There are loads of examples of how to do this on the internet so coding is not a problem. There are however a few questions regarding cryptography and AES in general.
#1 Does the IV need to be kept a secret like the key ?
#2 Can I just hash a string with SHA512 to make a key for AES ? or do I need to use PasswordDeriveBytes ?
#3 In the case of me using PasswordDeriveBytes Do I need to keep the salt a secret ?(or do I need to keep it at all)
#4 Can I generate the IV from the same password that the Key is derived from ?(if so How ?)
Need to design a program that can encrypt and decrypt messages stored in simple text files using a private key stored in a separate file. Software should also be able to allow the users to enter simple messages that either displays the encrypted or decrypted message. The encryption method should use a simple substitution method. It should be set out in the following format:
Example (the "@" is the separator):
@
The character The Code End of line
A @ 4gh EOL
B @ 84!9 EOL
Has to use the 256 ASCII character codes. The separator will be used to separate the character and its corresponding code.Here are the pseudocodes I have come up with:
� Read any private key file
separator = readline(file);
while not EOF(file) do
tempStr = readline(file);
[code].....
Parameters.ReferencedAssemblies.Add("System.dll")
Parameters.ReferencedAssemblies.Add("System.Data.dll")
Parameters.ReferencedAssemblies.Add("System.Windows.Forms.dll")
is a way to encrypt "systems.dll" in the add() value?
something like Add(Char64+char45+...) or any method???
Dim Version = New Dictionary(Of String, String)
Version.Add("CompilerVersion", "v2.0")
[Code]...
I have an app that I'm calling up a 3rd party API.. and on each call I want to store off the patient data in to logs that are like weekly.. so on each call to the API I want to encrypt the data and push as a line into a file..I kinda dont want to open the file.. add in data then encrypt the whole file, that seems like extra work to me.so if I want to encypt the data from string to byte whats the best way to push into a file and then read out.. should I set the string to be a certain lenght so my writes and reads match up ? or is there a way to write to a data file so that it knows the end of the entry ? should I use a type class for this ?
View 1 RepliesI'm just getting started with Visual Basic .NET and I'm currently stuck on the following problem: how can I encrypt/decrypt a file with asymmetric encryption?
Essentially, I'm trying to figure out how I can write the following pseudocode in VB
[code]...
how can i encrypt cookie in asp.net?
View 2 RepliesI have a classic ASP page which constructed a querystring for a link to an ASP.NET page. Certain elements in the querystring are somewhat sensitive so I want to encrypt them. I've come across some techniques for doing this in ASP.NET and also in classic ASP but I'm not sure how to do it from classic ASP to ASP.NET. I'm using .NET 3.5.
View 1 Repliesi am receiving an encrypted string from VB.NET in PHP. I am able to decrypt the key. But when i want to encrypt the result and get the encrtypted string i get a mismatch.Below is the PHP CODE.
<?php
//$syscode=$_REQUEST['syscode'];
//The actual string is "blueberry" which is encrypted in VB.NET and sent to PHP
$syscode = "8yN73RDmMFuXo9ux8QKC6w=="; //This is the encrypted string as received from VB.NET
[code]....
How to encrypt this url in asp.net (VB.NET), so that user cannot view this address bar text in their browser address bar ?
[URL]
i got encrypt way so how can i decrypt it and the encrypt way is :
View 7 RepliesI'm building an application which transfers certain cofidential data over the internet through the TCP protocol. I wondered how I could encrypt the connection with
View 3 RepliesI made this program to encrypt any given string, I am getting an error that prevents this from being finished.
Public Class Form1
Dim Holder As string
Dim Pass = "Za029fjao"
Dim Helper As String
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Holder = TextBox1.Text
Helper = Holder + Holder * Pass
Textbox2.text = Helper
End Sub
End Class
All I want to do is multiply 2 strings (is that possible?). The error says that string cannot be converted into double...
i need a standard way of encrypting a string and decrypting it using AES. I am aware of the Cryptography class, however almost every example creates a class to do the encryption,If .Net already has this implemented and ready to use why would we create classes for encryption and decryption, isn't it as simple as calling the encrypt method of the class or decrpyt and passing in the text. Unless everyone is wanting to centralize the code. But even then i see so many different examples from File,Data Protection etc..
View 10 RepliesI need some help on saving/reading xml from/to dataset. I would like to make that complete file is encrypted and not only some elements inside or part of file.Currently this is not working in any way at all.[code]
View 14 RepliesSo I have a connection string which is read from a basic text file. This string contains a password. Is there anyway to encrypt this text file so that anyone can't just open it up and read it. The program will still be able to read it.
View 5 RepliesIs it possible to encrypt a file/folder in vb.net?
View 3 RepliesI am not sure if there is such thing in VB.NET via 128-bit Encryption or more. [code]...
View 12 RepliesI ahve code which will encrypt and decrypt a file in widnows. now i want to implement my logic for a folder in windows. the folder may contain sub folders and numbe rof files.
View 4 RepliesI ended up getting this properly working, as far as encrypting a file goes:How to encrypt and decrypt a file by using Visual Basic .NET or Visual Basic 2005 However, the catch is I have to change the name of the output file. What I was hoping to do is overwrite the original with the encrypted file, but when I tried that on a large file, it ended up only getting about 8 bytes of it.
Does anybody have any suggestions or recommendations? The overall idea is that I want to keep a file encrypted until it needs to be unencrypted for use by a program, but I'm not sure if there are better tools out there or if there's a better way of accomplishing this.
Question 2: I would really, really like to encrypt an entire folder, which I'm guessing would be faster than file by file, but when I try I keep getting access denied errors, even with DOS Cipher. Is there a way to do this with a key?
there is anyone know how to encrypt and decrypt app config in vb.net??i want encrypt connection string and appsettings .
View 4 RepliesHow to encrypt and decrypt database..
View 4 RepliesHow to encrypt and decrypt database
View 3 RepliesI have this now:
Code:
<connectionStrings>
<add name="DataProject.My.MySettings.CobrosConnectionString"
connectionString="Data Source=***.**.***.**;Initial Catalog=test;User Id=test2;Password=pass123;"
providerName="System.Data.SqlClient" />
[Code]...
How do I set/get the connection string encrypted instead of plain text?