I create a project encrypt and decrypt data in vb.net how to use this code as a function please help it is work only on a textbox i want to send a string value then return encrypt value and when i send encrypt value then send me decrypt value. [Click Here](https://www.daniweb.com/programming/software-development/threads/375789/encrypt-decrypt-vb-net) **What I have tried:** `Private arLetterChars() As Char = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890 "` `Private arEncryptedChars() As Char = "******************************************************"` **' encrypt.** Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click, Button4.Click With TextBox1 For Each myTextBoxChar As Char In .Text '// loop thru TextBox, one char. at a …

Member Avatar
Member Avatar
+0 forum 1

i am new in this encryption and decryption i would like to have my encryption appear on my database (currently using microsoft sql server) i create 3 forms : one for the registration which means when u will register, u will be able to access the 3 forms by entering the username and password register i dont know what is happening the encryption can someone help resolve it basically my system will have to be connected to the database and then it is where the encryption will be in the login tables which is composed of username and password \***** …

Member Avatar
Member Avatar
+0 forum 1

I'm trying to understand how the function encrypt works (linux), but event with this simple example is not working. Any ideas?. Thank you. #define _XOPEN_SOURCE #include <unistd.h> #include <stdlib.h> #include <iostream> #include <string> int main() { const char key[64] = "12" ; /* bit pattern for key */ char txt[64] = "test encrypt"; /* bit pattern for messages */ // set Key setkey(key); // show original std::cout << "Original text : " << txt << std::endl; // encode encrypt(txt, 0); std::cout << "Encrypted : " << txt << std::endl; // decode encrypt(txt, 1); std::cout << "UnEncrypted : " << txt …

Member Avatar
Member Avatar
+0 forum 3

i have an issue, my code works wonderfully for the pupose its designed for however for security reasons i need th epages page my login page to have either randomized links or just links that cannot be bookmakred too so that one can bypass the login page. My login page is set up to do a basic query from a table of usernames and passwords and so far thats been great but like i said before i need the page to be random each time. How do i go about doing this? I know only what i have read so …

Member Avatar
Member Avatar
+0 forum 12

Hi everyone, I'm new to programming (and daniweb) and I'm having a small problem with a Caeser Cipher program I'm writing. messageE = input('\nPlease enter string to encrypt: ') offsetE = int(input('Please enter offset value (1 to 94): ')) encryptedE = '' if offsetE < 1 or offsetE > 94: print('Incorrect input. Please enter a value between 1 and 94.') messageE = input('\nPlease enter string to encrypt: ') offsetE = int(input('Please enter offset value (1 to 94): ')) for char in messageE: encryptedE = encryptedE + chr(ord(char) + offsetE) print('Encrypted string:\n', encryptedE) Gives the output: Please enter string to encrypt: …

Member Avatar
Member Avatar
+0 forum 4

Well, in my previous thread i needed help deleting arrays, for the codes i use its here: http://www.daniweb.com/software-development/vbnet/threads/426588/how-to-move-arrays-1-place-down- But now i need help saving the arrays, i can save all the arrays to ini file like this: Ini module: Option Strict On Module INIAccess #Region "API Calls" ' standard API declarations for INI access ' changing only "As Long" to "As Int32" (As Integer would work also) Private Declare Unicode Function WritePrivateProfileString Lib "kernel32" _ Alias "WritePrivateProfileStringW" (ByVal lpApplicationName As String, _ ByVal lpKeyName As String, ByVal lpString As String, _ ByVal lpFileName As String) As Int32 Private Declare Unicode …

Member Avatar
Member Avatar
+0 forum 25

how do i make a live kali usb with persistence and encrypt it so that no one besides me could access it..? any help would be appreciated thnx in advance :-)

Member Avatar
Member Avatar
+0 forum 1

Using the PySide GUI toolkit will make selecting, copying and pasting encrypted and decrypted text somewhat easier. Not ideal yet, but it will be a good start for those of you who are not very familiar with GUI programming.

Member Avatar
Member Avatar
+2 forum 1

In today's environment where just about anyone can snoop around your e-mail, it is prudent to securely encrypt your more private writings. This little Python program will make it easier to do so.

Member Avatar
Member Avatar
+4 forum 1

The goal of my assignment is to create a program that takes a string of words and encodes or decodes the string using a simple substitution cypher. I've gotten a decent amount done but I am stuck at the part where I actually have to encrypt and decrypt using the offset that the user has input. This is what I have, can anybody lend a hand? #include <stdio.h> int main () { #include <stdio.h> int main () { char alpha[26] = "abcdefghijklmnop"; char ALPHA[26] = "ABCDEFGHIJKLMNOP"; char*encrypt(char*str,int offset); char*decrypt(char*str,int offset); int option; int offset; char str; char toencode(int alpha, int …

Member Avatar
Member Avatar
+0 forum 1

hallo master .. I have a problem, how to make encryption and decryption using the Vigenere cipher in vb.net.? I hope someone can help me the problem. thank's before ..

Member Avatar
Member Avatar
+0 forum 2

This shows the code for one simple crypt of text by swapping two adjoining characters each. You can make that more complex if you like. Can also be used for one nice riddle.

Member Avatar
Member Avatar
+2 forum 1

Hi All, I'm having a bit of an issue with a stored procedure I have written which encrypts a value using ENCRYPTBYPASSPHRASE and DECRYPTBYPASSPHRASE. The problem is these functions return Varbinary data types which I need to append to a Varchar data type. Can anyone help with being able to display this as a Varchar data type without converting it? ie have a Varchar whose value is "0x010000004C4101804DD79FC3CA2258826140B2A3B66A0130F4AECB34" rather than the actual Varchar conversion of the Varbinary. I'm not limited to using ENCRYPTBYPASSPHRASE if anyone knows of a more convenient method. Please bear in mind the values are stored in …

Member Avatar
Member Avatar
+0 forum 1

Hi all. Im wondering if it is common practice to encrypt the database contents. or is it normally left in plain text. for example, in a databse I have, the contents is stored in plain text: a select query would bring up "hello world", but should it be an encrypted form of "hello world" when stored? your opinions are most welcome. In my opinion, which im not sure about, It makes it easier to transform / transport / work with while coding etc but also creates a security issue. Then again, if you encrypt thousands of records and lose the …

Member Avatar
Member Avatar
+0 forum 2

It doesn't run! Can you help me please? Devc++ compiles it, and also launch the exe file, but it stops after the second for cycle! Why? :D [CODE]#include <iostream> #include <string> using namespace std; int main() { int N,i,z; cout<<"Digitare il umero di caratteri che contengono il nome "; cin>>N; string cod[N],nome[N]; int ch[N]; cout<<"Nome in codice "<<endl; for(i=0;i<N;i++) cin>>cod[i]; cout<<"Chiave di lettura "<<endl; for(i=0;i<N;i++) cin>>ch[i]; for (i=0;i<N;i++) nome[i+1]=cod[ch[i+1]]; cout<<endl; for (i=0;i<N;i++) cout<<nome[i]<<endl; system ("Pause"); return 0;}[/CODE]

Member Avatar
Member Avatar
+0 forum 1

Does anyone know of a way to encrypt a string and output it as x number of characters? I need it to always return the same number of characters. I know MD5 always returns it as 32 characters. I'd like for it to return less that that, maybe 20 or 24 (the number has to be divisible by 4). And I'd like to be able to decrypt it. I can't figure out how to do it. Can anyone give me suggestions? Thanks!

Member Avatar
Member Avatar
+0 forum 2

Hy , I have to encrypt a message and then decrypt it. I have this code , but i need to save the encrypted string in a database and the code generates a random key every time. I could save the string and the key in the database but that is not ok . How can i make my own key without needing to generate it every time? [CODE] import java.security.InvalidKeyException; import java.security.Key; import javax.crypto.BadPaddingException; import javax.crypto.Cipher; import javax.crypto.IllegalBlockSizeException; import javax.crypto.KeyGenerator; import javax.crypto.SecretKey; public class LocalEncrypter { private static String algorithm = "DESede"; private static Key key = null; //private …

Member Avatar
Member Avatar
+0 forum 10

Hi, I am using ASP.NET to develop a system. Would you mind to share with me whether the code can be encrypted or convert to DLL to prevent coding exposure to other?

Member Avatar
Member Avatar
+0 forum 6

I am using a DLL file as my license file for a VB.NET project and was wondering if there was a way to make it locked so notepad can't open it and edit the data stored in there. Thanks in advanced!

Member Avatar
Member Avatar
+0 forum 6

Is anybody know what is the easiest way to encrypt and decrypt text from textbox? Thank you in advance. Good day!

Member Avatar
Member Avatar
+0 forum 7

Hey i wanted to know if there's a program that shows u a pattern on how they got the number if i give them 3 examples? for Ex: 1) 35777903801230601 (Encrypted) = 46071642 (Decrypted) 2) 35777903248036801 (Encrypted) = 43975216 (Decrypted) 3) 35777903508068601 (Encrypted) = 91756761 (Decrypted)

Member Avatar
Member Avatar
+0 forum 3

I'm attempting to create a one line Caesar cipher decryption program in python and i'm afraid i've come to the end of my knowledge and well past it. this is the closest working code i've got: [code]def test3(): print("The decrypted text is: "+"".join(map(lambda x: chr(ord(x)+y),x)))[/code] as you can see it requires me to define x and y (the input text and the shift amount respectively) before hand. this wont do, next i tried this (and several variations of) [code]def test4(): print("The decrypted text is: "+"".join(map(lambda x=input("text: "),y=eval(input("shift: ")): chr(ord(x)+y),x)))[/code] but x is undefined globally the function should run as follows: …

Member Avatar
Member Avatar
+0 forum 5

Hey i wanted to know if there's a program that shows u a pattern on how they got the number if i give them 3 examples? for Ex: 1) 35777903801230601 (Encrypted) = 46071642 (Decrypted) 2) 35777903248036801 (Encrypted) = 43975216 (Decrypted) 3) 35777903508068601 (Encrypted) = 91756761 (Decrypted)

Member Avatar
Member Avatar
+0 forum 3

hi i am looking for some code and step by step instructions for the c sharp encryption and decryption process. if anyone is willing to send me some instructions i would be grateful. thanks Neville

Member Avatar
Member Avatar
+0 forum 5

We may set one password for a file if we don't want others to open it, especially the secrete document. Generally speaking, we are used to writing articles or papers in Microsoft Word. And we may need to encrypt Word document if it is very important for security. Also, when we operate Word by using C#/VB.NET, to <URL SNIPPED>encrypt Word document is also needed to make sure that the document cannot be opened unless having the password. So, how should we do to etncrypt Word document in C#/VB.NET? How to Encrypt Document in Microsoft Word Firstly, we need to open …

Member Avatar
+0 forum 0

I want to create a program that create a file and encrypt it and when the user click the file it will open the program and ask user for password and if the password is correct it will decrypt the file but not save the decrypt file and read the data from the file

Member Avatar
Member Avatar
+0 forum 1

Hello. I am currently working on a little password based file encryption feature for an application I am doing. The following is an incomplete function that I have worked on to encrypt some content and (will eventually) write it to a file. [CODE]public static void encrypt(byte [] data, char [] password, File file) throws ... { byte[] salt = { (byte)0xA9, (byte)0x9B, (byte)0xC8, (byte)0x32, (byte)0x56, (byte)0x35, (byte)0xE3, (byte)0x03 }; int iterationCount = 50; PBEKeySpec keySpec = new PBEKeySpec(password, salt, iterationCount); PBEParameterSpec paramSpec = new PBEParameterSpec(keySpec.getSalt(), keySpec.getIterationCount()); SecretKeyFactory keyFactory = SecretKeyFactory.getInstance("PBE"); SecretKey key = keyFactory.generateSecret(keySpec); Cipher cipher = Cipher.getInstance(key.getAlgorithm()); cipher.init( Cipher.ENCRYPT_MODE, …

Member Avatar
Member Avatar
+0 forum 6

The End.