File After Custom Decryption
Jul 29, 2009
Ok so I've made an encrypting/decrypting program and I've found a small bug with it. It will encrypt plain text files fine, except for the last character ( does anyone know how to fix this by the way? ) But when it comes to enrypting PNG Images.. well here's is the before and after files:
[Code]...
View 6 Replies
ADVERTISEMENT
May 18, 2009
I've got a site using .netCART. It's running fine in production with Windows Server 2003 and .NET 2.0. On the new server (Windows Server 2008) everything is working except for credit card decryption in the store admin. No errors are being sent, no exceptions thrown, just the encrypted string being output to the screen instead of a decrypted credit card number.
Dim strCCEncrypt As String
strCCEncrypt = Trim(DataRow.Item("CreditCard"))
strCCEncrypt = tools.Decrypt(strCCEncrypt) 'tools is a .netCART utility
[code].....
View 3 Replies
Feb 28, 2011
I'm having trouble writing the code to encrypt a file->networkstream->Decrypt the file.. I've tried several ways, but I keep failing....
View 1 Replies
Dec 22, 2010
i will like to know if it will be possible to decrypt and encrypted file in vb.net or any without knowing the form of encryption..any information on how to go by it... in that if you lose the form on encryption can it be decrypted?
View 1 Replies
Sep 20, 2011
I 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 Replies
Oct 8, 2010
i am looking to decrypt my HEX code file for an ATTiny chip and programming it using the AVRDude command line interface. Problem being, i do not want the user to be able to see what the HEX file is at any given time.Can the VB.net Cryptography crypt the HEX file before i put it onto the server and then decrypt it after the program downloads it from the server and runs it through the program without seeing the decrypted HEX file?Obviously the HEX file can not stay encrypted while being programmed to the ATTiny chip so how can i go about it so that i can create the original HEX file to be programmed within the program without having to worry about it writing a temporary file to the hard drive and then deleting it afterwards? (Because they could close the program after it does that temp file and they would be able to navigate and open it and see the code)
View 3 Replies
Oct 8, 2010
i am looking to decrypt my HEX code file for an ATTiny chip and programming it using the AVRDude command line interface. Problem being, i do not want the user to be able to see what the HEX file is at any given time.
Can the VB.net Cryptography crypt the HEX file before i put it onto the server and then decrypt it after the program downloads it from the server and runs it through the program without seeing the decrypted HEX file?
Obviously the HEX file can not stay encrypted while being programmed to the ATTiny chip so how can i go about it so that i can create the original HEX file to be programmed within the program without having to worry about it writing a temporary file to the hard drive and then deleting it afterwards? (Because they could close the program after it does that temp file and they would be able to navigate and open it and see the code)
View 1 Replies
Oct 7, 2010
i am looking to decrypt my HEX code file for an ATTiny chip and programming it using the AVRDude command line interface. Problem being, i do not want the user to be able to see what the HEX file is at any given time.
Can the VB.net Cryptography crypt the HEX file before i put it onto the server and then decrypt it after the program downloads it from the server and runs it through the program without seeing the decrypted HEX file?
Obviously the HEX file can not stay encrypted while being programmed to the ATTiny chip so how can i go about it so that i can create the original HEX file to be programmed within the program without having to worry about it writing a temporary file to the hard drive and then deleting it afterwards? (Because they could close the program after it does that temp file and they would be able to navigate and open it and see the code)
View 2 Replies
Jul 12, 2011
I am trying to make a key that will be used in file encryption/decryption for my application. However, there is no user data involved with this application (As i would usually use the user's password to generate the encryption key), so i have to turn to another method.
I am thinking that maybe it is possible to generate a completely random key the first time the program runs, then save this key inside the program so that it is inaccessible by the user. The user will not be shown this key, but the key MUST be randomly generated for each application, and it also must stay constant once it is created.
View 1 Replies
Oct 8, 2010
i am looking to decrypt my HEX code file for an ATTiny chip and programming it using the AVRDude command line interface. Problem being, i do not want the user to be able to see what the HEX file is at any given time. VB.net Cryptography crypt the HEX file before i put it onto the server and then decrypt it after the program downloads it from the server and runs it through the program without seeing the decrypted HEX file?
Obviously the HEX file can not stay encrypted while being programmed to the ATTiny chip so how can i go about it so that i can create the original HEX file to be programmed within the program without having to worry about it writing a temporary file to the hard drive and then deleting it afterwards? (Because they could close the program after it does that temp file and they would be able to navigate and open it and see the code)
View 10 Replies
Feb 10, 2011
What I've decided to start working on is pretty much a personal project but something I may use in my UNI course in due time. I'm creating a security program with a set of access codes (yes I am a bit of a star trek fan) - 4 in total to be exact. I want to be able to use an Encrypted key file in form of a simple notepad created text file to update the codes at any due time. All I'm looking to do is write the access codes to the text file (say for a friend to use the program), Encrypt the file through the program and be able to also decrypt to obtain the new access codes on demand also via the same program. Once decrypted the codes can be read and verified if the user has entered each one correctly. I could hard code the access codes into the program but would rather do it the way I've thought of.
Back in the days of the old VB6 there was a simple method but for some reason that doesnt work any more. What I guess I'm looking to do is have 4 text fields where 4 digit access codes are typed into, have the program take them and encrypt each one is then written to the text file. Hoping that will make it a bit clearer what I'm trying to achieve as I think I made it sound like I want to encrypt the text file after the info has been written to it, which is of course one option so wouldn't mind know how to do that too!
View 3 Replies
Dec 19, 2010
know how to create a custom file association ( a custom extension ) in VB .Net and how to open it on the application
View 1 Replies
Jul 21, 2006
With VB.net, I'm coding a simple application to get more used to the new .Net format.
I'd like to save all the information to a 'new' database file. how to create a database on the fly, once that is done i'll be able to connect to it no problem, but actually creating the file is proving difficult to work/find out.
Also, with vb.net and the newly created custom file, how can it be made to automatically open that information with the program?
Is there a method in installation to associate the file type with the new program? How can i check when the program loads if a database file has been 'double-clicked' (rather than just running from the .exe of the program) and proceed to load the data?
EDIT1 - Extra InfoThe windows application has many different fields and content etc, then i need to save that to a file that could later be loaded by 'double clicking'. I assumed the easiest way would be to create a mini-database for each unique file
View 3 Replies
Feb 1, 2012
Here is some code that works well for strings:
[Code]....
modifying these functions to encrypt/decrypt byte arrays rather than strings. Also, to have the functions return the encrypted/decrypted byte array, rather than a string.
View 2 Replies
Apr 30, 2009
If the input is alphabets such as any string, it works ok but once the input is in numeric such as "177307" the error attached will be prompted out during the decryption process. I've checked that the decryption value for 177307 is "dw==". I suspected that this function does not support numerical values. Is there anyway to fix this problem? Below are the codes and attached is the error
Imports System
Imports System.Security.Cryptography
Imports System.IO
[code].....
View 1 Replies
Jun 29, 2011
encrypt MS Access database and also decrypt it.
My purpose is to encrypt the database so that it cannot be open independently without using the application. my application should still be able to access it read/write.
View 2 Replies
May 17, 2009
At the moment I have a Form containing two text boxes and two buttons. I want the one textbox to be used to type a message (to be encrypted) and the second textbox will be for a key to decrypt the message. Button one will be for encryption and button 2 for decryption.
View 7 Replies
Jun 24, 2009
From desktop application I want to upload an image. Then want to pass that image to webservice which encrypt it and pass it to another webservice which will save the encrypted image in the Access database. And then using ASP.net want to decrypt the image.
View 2 Replies
May 28, 2009
I have a Problem to Decrypt my crypted files :e.g. if I encrypt this text:
B�AR B�LASDJASPDJAPSDJPASDJPASD
asdj
...
And Decrypt it:
AB0_�-M3‚S�r�WPJAPSDJPASDJPASD
asdj
...
The first chars are wrong! My Code to Encrypt and Decrypt :
Encrypt:
Public Shared Sub EncryptFile(ByVal sSource As String, ByVal sTarget As String, Optional ByVal BufferSize As Long = 4096)
Dim ErrorHappened As Boolean = False
Dim OldFileStream As FileStream
Dim NewFileStream As FileStream
[code].....
View 1 Replies
Oct 11, 2011
I need to encrypt a string using javascript and decrypt it using vb.net, is there a compatible encryption/decryption method between javascript and vb.net to be used?
View 5 Replies
Jul 16, 2009
[Code] I need to do a video encryption/decryption on p2p chat. The concept for my understanding is to capture the video, encode it then encrypt, on the receiver side is to decode and decrypt it.
View 1 Replies
Apr 22, 2011
I can encrypt/decrypt fine with a certificate that is in a PFX file because the Private Key is contained in the X509Certificate2, but if I import the certificate to my personal store and mark the private key as non-exportable I have almost no clue what to do to get the decryption done. I have narrow traces to CryptoAPI but I haven't been able to find any articles or code sample neither in VC++ nor C# (to be translated to VB.NET)..
View 3 Replies
Jan 31, 2010
When I decrypt an encrypted file; it doesn't have the same size in bytes as the original file and the the hash of the file is different.
I get the bytes of the file using File.ReadAllBytes and send to EncryptBytes with the password. Also the same with DecryptBytes.
When I receive the bytes encrypted or decrypted i save them using File.WriteAllBytes.
I need that the decrypted file and original file have the same hash an bytes.
This my code:
Public Function EncryptBytes(ByVal pass As String, ByVal bytes() As Byte)
Dim myRijndael As New RijndaelManaged
myRijndael.Padding = PaddingMode.Zeros
myRijndael.KeySize = 256
[Code].....
View 2 Replies
Nov 30, 2010
How to implement encryption and decryption algorithms in vb.net? Which algorithm is the best suited one?
View 4 Replies
Mar 19, 2012
the code im making takes Cipher text and finds the possible number of rectangles (or factors) and finds the sum of the vowel differences of each of the possible rectangles.Since the english language has roughly 40% vowels in each row (0.4 * number of columns) - number of vowels would find the number of vowels for each row and then add up the vowel differences for each row to get the sum and that would be for each possible rectangle The output for each combinations for this given text should be:
25.8
504.599999999997
25.8
292.599999999999
[code]....
I can't seem to find what's wrong
View 1 Replies
Apr 27, 2011
I need to encrypt an XML file, send it to another location and decrypt it there. As you can see from the codes below, I am using the same key but it won't work (for now im simply using two local files).
The error I get is as follows:
Padding is invalid and cannot be removed.on this line in Decrypt.aspx: Dim xReader As XmlTextReader I am thinking it might be at the actual encryption stage causing errors e.g., file not saving correctly.
Encrypt.aspx
Dim rijnAlg As RijndaelManaged
rijnAlg = RijndaelManaged.Create()
[code]......
View 2 Replies
Apr 23, 2010
I have been writing a security class in my application, I am able to encrypt the string correctly and without error. However every time when I try to decrypt this string again, i get an error with this as it returns the following Padding is invalid and cannot be removed.
Here is the code:
Public Function DecryptKey(ByVal plainText As SecureString, ByVal key() As Byte, ByVal iv() As Byte) As SecureString
Try
[CODE]...
And it provides a stack trace with:
at System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)
[CODE]...
I have found simular issues on web, and most of them say that the IV is not the same the encrypted version, but I can confirm that the IV is the same as they both access the exact same variable.
View 1 Replies
Jul 13, 2011
decryption error : Padding is invalid and cannot be removed.
View 1 Replies
Jul 26, 2011
I'm trying to find a simple and easy encryption/decryption method for strings. The strings will contain spaces, special characters, numbers, and letters. I just need to be able to encrypt/decrypt them.
View 3 Replies
Jul 18, 2010
I was board making web browsers and OS so, I tried making an Encryption/Decryption program. I surfed the net and found a source code. But, after doing everything, I debug it, click the encrypt btn and nothing happens. I though the encrypting is a slow process. The thing is the process should be immediate cause I downloaded this web browser called 'Areo Pack'. It comes with a few other program and one of them in an Encryption/Decryption program. I tried it and it was done in a few seconds. I tried opening the encrypted file with notepad and I see a text file with Chinese, Japaneses, Korean, etc.
Imports System.Security.Cryptography
Imports System.Text
Public Class Form1
Private Shared DES As New TripleDESCryptoServiceProvider
Private Shared MD5 As New MD5CryptoServiceProvider
[Code] .....
View 2 Replies