•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 401,535 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,385 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Views: 961 | Replies: 11 | Solved
![]() |
my prof told me to make my thesis system encrypt all that i save on it (on the add/save part of
a file maintenance) ... thats all he said,
ive seen something like this, but cnt remember...
can any1 help me on making a program that when ever i save a data to a database(using VB)
that data will be encrypt?? or some what be jumbled??
my only idea for this is using the ..... hmmm, changing the keydown sumthing of each letter i write when saving it to a database,
ex.
i try to save the word "MYNAME" on a database
then when i open the database
instead "MYNAME" is there
i will see sumthing like "SJWCNZ" (it changes the letter/or somewhat jumbled)
pls help me, i wanna learn how to make this,
thx a million for those who's willing to share
a file maintenance) ... thats all he said,
ive seen something like this, but cnt remember...
can any1 help me on making a program that when ever i save a data to a database(using VB)
that data will be encrypt?? or some what be jumbled??
my only idea for this is using the ..... hmmm, changing the keydown sumthing of each letter i write when saving it to a database,
ex.
i try to save the word "MYNAME" on a database
then when i open the database
instead "MYNAME" is there
i will see sumthing like "SJWCNZ" (it changes the letter/or somewhat jumbled)
pls help me, i wanna learn how to make this,
thx a million for those who's willing to share
Last edited by hawisme000 : Feb 4th, 2008 at 12:26 pm.
•
•
Join Date: Nov 2007
Location: ★ Jogja ★
Posts: 2,473
Reputation:
Rep Power: 9
Solved Threads: 215
See this my encryption method, this a simple one. you can use this code to save the encryption result to database and read database with encryption reading.
Encrypt.zip
This is a screenshoot from my encryption.
Encrypt.bmp
Encrypt.zip
This is a screenshoot from my encryption.
Encrypt.bmp
Last edited by Jx_Man : Feb 4th, 2008 at 2:50 pm.
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
So, Please do something before post your thread.
* PM Asking will be ignored *
ok sir ive seen your code, and its really good, but theres something i cnt understand about it
the line
whats "Asc" , "Mid" use?
also what are those number for?
what do they do?
pls explain it to me,
ohh 1 more thing about the
"reDim" also pls....
TY!!
the line
CriptVariable = Asc(Mid(Label1.Caption, i + 1, 1)) - 77
whats "Asc" , "Mid" use?
also what are those number for?
i + 1, 1)) - 77
pls explain it to me,
ohh 1 more thing about the
"reDim" also pls....
TY!!
•
•
Join Date: Nov 2007
Location: ★ Jogja ★
Posts: 2,473
Reputation:
Rep Power: 9
Solved Threads: 215
asc = to get ascii.
mid = take a letter from taken value position and sum of value which it taken.
ex: mid("perfect",2,4) result = erfe
ReDim statement to serve as the initial declaration of a dynamic array. The array does not have to be declared anywhere else.
Asc(Mid(Label1.Caption, i + 1, 1)) - 77
get letter from label1 with mid function start from i+1 as many one letter and the result convert to ascii. then ascii be shift as 77.
mid = take a letter from taken value position and sum of value which it taken.
ex: mid("perfect",2,4) result = erfe
ReDim statement to serve as the initial declaration of a dynamic array. The array does not have to be declared anywhere else.
Asc(Mid(Label1.Caption, i + 1, 1)) - 77
get letter from label1 with mid function start from i+1 as many one letter and the result convert to ascii. then ascii be shift as 77.
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
So, Please do something before post your thread.
* PM Asking will be ignored *
•
•
Join Date: Nov 2007
Location: ★ Jogja ★
Posts: 2,473
Reputation:
Rep Power: 9
Solved Threads: 215
yes
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
So, Please do something before post your thread.
* PM Asking will be ignored *
•
•
Join Date: Nov 2007
Location: ★ Jogja ★
Posts: 2,473
Reputation:
Rep Power: 9
Solved Threads: 215
you see the program have a reading encryption code. it working if label encryption changed. see the code when label encryption result change (label1 in program).
when you want to show data again after save, use the code to reading encryption after load data then show it to user.
Encrypt data in database -> load data -> encryption reading -> show data after encrypt to normal.
Ok. hope this helps.
all for the best friend.
NB : don't forget to mark this solved
when you want to show data again after save, use the code to reading encryption after load data then show it to user.
Encrypt data in database -> load data -> encryption reading -> show data after encrypt to normal.
Ok. hope this helps.
all for the best friend.
NB : don't forget to mark this solved
Last edited by Jx_Man : Feb 7th, 2008 at 1:32 pm.
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
So, Please do something before post your thread.
* PM Asking will be ignored *
![]() |
•
•
•
•
•
•
•
•
DaniWeb Visual Basic 4 / 5 / 6 Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Previous Thread: How to get mac address with input ip address
- Next Thread: Need help in accessing tablenames from MSACCESS database



Linear Mode