VS 2008 Encrypting .pdf Files
Aug 9, 2009how I can encrypt .pdf files? I haven't been able to find something that will give me an idea of how to do it.
View 4 Replieshow I can encrypt .pdf files? I haven't been able to find something that will give me an idea of how to do it.
View 4 Replieswhat the relation between Serialization and encrypting files, i wanna know that and i wanna a lessons for serialization and i want to ask about this code in VB6 if we can convert it to VB.net 2008
Dim a As String * 10
Dim b As String * 10
Dim c As String * 10
[code]....
i would like to encrypt my data files, which are serialized object files. is there a simple way to do this that will work trouble free on both windows xp and vista?
my environment: windows xp pro (sp3), visual studio 2008 pro, (sp1, sdk 1.1)
I'm writing a program in Basic where users can select a File using OpenFileDialog, then using a Dialog with two textboxes as the way to set the password to encrypt a file. I'm having trouble getting the program to require the password to open the file.
View 5 RepliesI have a folder. With folders. With files (mainly .pngs).
For learning purposes, I am trying to create an application that will take that folder and "compile" it in one single data file. Like a .bin. The point is, the user can't see or edit the images... easily.
And in the future, my application can open such data file and read the folder's contents, and also display the images found within the folder (using Image.fromFile("pathForTheFile") or something like that).
Is that possible? Is it possible to "encrypt" or "compile" folders/images or even audio into one file and re-read it in a future using VB.NET?
I recently made a program that will automatically log in a site and start a game. I have it so that you can save the Username and Password to a text file. I need the text file to be encrypted though, and then decrypted when you load it back up.
View 14 RepliesI am new to .net classes and i would like to know how can i encrypt a text with AES256 algorithm.
View 3 RepliesI have a DER file with sha1RSA as the Signature Algorithm. I have to encrypt some data using it.Can anyone tell me how do I load the DER file and use the RSA public key in it to encrypt my data in .NET?
View 1 RepliesI'm using the .NET version of BouncyCastle, and I have to save a private RSA key to file, obviously encrypted with a password for security reasons.What I'm trying right now is this:
Dim rand As New SecureRandom
Dim arr As Byte() = New Byte(7) {}
rand.NextBytes(arr)
[code].....
But BouncyCastle is thwrowing a NullReferenceException on the last instruction. Since the method is totally undocumented >:( I wonder if any of you know how to use it correctly...
I have a requirement where I have to pass some values into the next page via querystring.This querystring is coming from third party and they need to have it on the otherpage for some analysis. I just do a response.redirect and add the querystring that i recieve from them to the other page. My problem is that the .net environment is encoding/encrypting some of the special characters used by them which I dont want as it does not bring back the correct values in the new page.
[Code]...
There are many algorithms for encryption in internet. But i found them more complex. I want simple and powerful algorithm for encryption and decrytion of text.
View 13 RepliesI am actually really new to VB and C#. From numerous tutorials that i found online i was able to create a small program that will encrypt a file. However I am having a really hard time decrying it back.[code]All I am trying to do is to create a program that will decrypte these file with an upload button. Our system encrypts the files to prevent operators from changing the results, we need to trend the data. However it will take way to long to use the online tool provided with the software. A desktop tool will save us much more time. The files generated are 70mb and up.
View 15 RepliesIm trying to create an encrypted file using a secure string and the AES128bit managed class to encrypt some data to a file.I have read many variations on the forums on how to do this but everyone seems to do it slightly differently. Ive created the below function and just wanted to confirm that this is the correct way to go about it.
[Code]...
how to encrypting strings with SHA1, but all of the code I have found does not work or it is to complex for my program. I have found a website that has a encrypting demo program. It worked well so I email the programmer and he gave me this code.
[Code]...
I heared about an encrypting function that encrypt the texts with a password I don't know exactly how it
View 6 RepliesIm a Uni student and im having probs with encrypting an image and also the contents of a folder. I have successfully encrypted and decrypted a text file using the following code below.
If anyone could take a look and advise on how to alter my code to perform the task of selecting an image or folder and encrypting it and decrypting it via a secret key that you input within a textbox,
[Code]...
I managed encrypting an xml document by encrypting an element and then replacing the element with the encrypted data. A shown in the sample code below. Public Shared Sub Encrypt(ByVal textReader As TextReader, ByVal textWriter As TextWriter, ByVal certificateName As String)
[Code]...
I want to redirect to some page with querystring,and the querystring value should be in encrypted format and i want to decrypt that in codebehind
example:
function redirect(s, e) { window.location.href = "Default2.aspx?Id=" + encrypt(5)+ "&No=" +encrypt( 5);}
and in codebehind:
Dim id As String = Request.QueryString("Id").ToString()
id = Decode(id)
Dim no As String = Request.QueryString("No").ToString()
no= Decode(no)
I finally managed to encrypt the user settings in my app.config with the following
[code].....
I am currently using a binary formatter to serialize/deserialize some data objects. Some of the properties in the classes are Strings. When the data is written you can open the file with a text editor and can see the raw String data. Is there any way to encrypt the Strings or the entire object before it is serialized? I have looked at this thread here [URL] but the code is in C# and the free converters I tried for some reason did not like the code. This is the code I am using currently.
[Code]...
I was wondering, i have smtp mail adress and password (for gmail*) and it is probably very easy to read it when opened with hex editor or decompiled so i want to encode/crypt that info in my program to make it almost (i know it isnt possible to make it fully unreadable) unreadable and/or make my program undecompilable
View 8 RepliesI have a program and I want to make it so you need a specific key to use it. I want to store keys in a text file and also use encrypt strings from my program to a text file.
I'm using Visual Studio 2010 Ultimate and programming in Visual Basic
I need to Encrypt my license info and put in the Sqlserver, while user login I need to decrypt the license info and need to check the license. Is there any strong Encryption is available in .net framework 4?
View 1 RepliesIm using Rijndael (as AES algorithm) for encrypting. I encrypt the values (objects properties) and serialize the object to xml an dsend the xml to the receiver via a web service. I want to pass along the encrypted symmetric key that I used to encrypt the data. But what key should I pass along?
My decryption algorithm looks like this (vb.net):
CODE:
If I want to decrypt the encrypted string I have to use both key and IV, but I think I have to pass along only a key value. Do I have to do this another way or what should I pass along? My specification says that the values have to be encrypted using AES and a 128 bits key.
Here is my code for encrypting a file:
Public Shared Function AESFileEncrypt(inputFilename As String, outputFilename As String) As Boolean
'Create SymmetricAlgorithm object and specify the Key and IV.
Dim AES As RijndaelManaged = New RijndaelManaged
[CODE]...........
This happens with large files. I gather that I have to use a fixed size buffer and read the file in small chunks, copying those chunks from the input to the output stream, until I reach the end of the input file.
I've been messing around with cryptography lately and wanted to figure a way to encrypt an exe so it's not runnable then decrypt it back to it's original state. I found a tutorial online that teaches how to do this with a text file so I figured I'd just tinker with that and try converting it for use with executables. For some reason though after I decrypt the encrypted version it doesn't run and gives me the error:^I'm running 64 bit windows but I'm pretty sure this wouldn't work on an x86 system either.
Imports System
Imports System.IO
Imports System.Security
[code].....
I am working on a program that uses AES encryption to encrypt a file. I fully understand AES encryption (after lots of research) and I am able to encrypt a big long string of binary numbers. How do you turn a file into a string of zeros and ones. Actually, a file will probably be represented using hexadecimal, so......How do you turn a file into a string of hex values? Is this even possible in vb?
View 19 RepliesI did a code to insert a data into a mdb database but I want the data to be saved in the database in an encrypted manner.
View 7 RepliesBasically, I need to transmit data across a network from point A to point B using a Binary Serialization System. I'm doing this to make sure that the system can't have outside listeners read the data being sent easily and to keep results secure and confidential.What is an easy way that I can encrypt, say, a generic object? Would it be easiest to serialize it to file, read the bytes in, encrypt the bytes, then store the bytes in a serialized structure and send that across the stream and reverse the process?
Private Function EncryptClass(ByVal obj As Object) As Byte()
Dim key() As Byte = {52, 15, 85, 150,
45, 12, 78, 120,
[code].....
I'm reading a file into a buffer using the Space function. Then I'm using blowfish dll's to encrypt it, and want to write the encrypted data to a txt file. (I realize you can use .NET cryptography classes, but I need to use these old blowfish dll's for this project.) Anyway, when when I encrypt the data in the buffer, I can see all encrypted data, but when I write it out to a file, I get a few lines of encrypted data and the rest of plain text.
HTML
' BLOCK_SIZE is a const which = 2048
sBlock = Space(BLOCK_SIZE)
Using sr As StreamReader = New StreamReader(FileToEncrypt)
sBlock = sr.ReadToEnd()
End Using[Code] ....