VB 2010 [Tutorial] How To Encrypt/Decrypt File Contents Using Custom DLL

preview_player
Показать описание
This program uses a custom DLL, containing the encryption and decryption methods, to decrypt the contents of a file, while allowing you to modify the contents, and then encrypting the contents when it is saved.

Check out my channel for more videos. If you like this video, please comment, rate it, and subscribe. Thanks for watching!
Рекомендации по теме
Комментарии
Автор

Yes it can. You would need to modify the code to either point to the .csv file or create an Open File Dialog (for multiple files). Now if you try to load an encrypted .csv file in say Excel, you would either get a bunch of encrypted information or it will say the file is in the wrong format. So I would suggest that you decrypt the file before loading it from another application. Again, modifying the code for your exact purpose will be required.

CyberCodeFreak
Автор

That is correct. You get this error when you try to import an unknown namespace, such as System.ID. The correct statement is this:

Imports System.IO

CyberCodeFreak
Автор

This is not a tutorial. It doesn't explain anything.

hooligan
Автор

You need to check and see what you have entered for the declared value of "a" and make corrections as needed.

CyberCodeFreak
Автор

To everyone getting an error with "Convert.FromBase64String": Don't use an already existing file. Create the file using the program

YourNightmar
Автор

You can manually add what program opens the file through the registry. Or programmatically, such as:
My.Computer.Registry.ClassesRoot.CreateSubKey(".big").SetValue("", "BIG",
My.Computer.Registry.ClassesRoot.CreateSubKey("BIG\shell\open\command").SetValue("", Application.ExecutablePath & " ""%1"" ",

CyberCodeFreak
Автор

Looks great but I cant get it to work. When I try and load the file I get this error Specified initialization vector (IV) does not match the block size for this algorithm. can you help ?

jellyfishanimation
Автор

I am also curious about the thing that imissblood asked. Is it possible to encrypt one file with for example extension .big (make it encrypted for any application) but with an exception of exactly pointed file .exe to read it?

I know i am asking too much probably, but can you make such DLL so we can be able to modify those two files? So we can point which file should be encrypted, and which application can read it!?

d_ce
Автор

Move over Gates and Buffett, there’s a new philanthropist in town

onism
Автор

Can you post DLL Link?
I have a little trouble and annoy to copy these line

AzakaSekai
Автор

Can this be used to encrypt certain files ? For example for a game that i wanna protect the files so no one can use them ? Let's say i have a .csv file and i wanna encrypt it. The .csv file is readed by an .exe. I wonder if the .exe gonna load the .csv file if it's encrypted.

Dragosx
Автор

when i import system.ID
show error
Warning 1 Namespace or type specified in the Imports 'System.ID' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any

zuliusakbar
Автор

When Im doing the Window Application's part when I write the line "Dim c As Byte() = Encrypt(b, a)

there is an error on the "a" the error message is "too many arguments to 'Public Shared Function Encrypt(value As String) By Byte()

Can someone please help me

jjpm
Автор

encrypt and decrypt are not declared please help

McsoftworksNet
Автор

can u upload code. i need the code to do my final project...please

Emykokumu
Автор

Great work! How long have you been using VB? I've been using it less than 2 years and my skills pale in comparison :c

TheFacelessRage
join shbcf.ru