o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

reading from ini file fails with capicom again -

Hi there,

I have made a login form which has a form_load inwhich it reads from an ini file the value "password".
But I would like to encrypt the value so I have used capicom
The ini files looks like this:

[Login Gegevens]

UserName=systeem
Database=MVL00001
PassWord=MFkGCSsGAQQBgjdYA6BMMEoGCisGAQQBgjdYAwGgPDA6AgMCAAECAmYBAgFABAjI
iGOC5ClhoQQQhV0PzyFKxFNayMaRPA7zLQQQpE1oDzCw79V5FFCoMrC66g==

But the Decrypting of PassWord failes because the value of PassWord is only the first line.

GetKeyVal(Form1.FileName, "Login Gegevens", "PassWord")
Could somebody help me on this?

 

CAPICOM prerequitsites (RESOLVED) -
Hello everybody I want to use CAPICOM to digitally encrypt a password in my application. I know that CAPICOM is based on CryptoAPI. I have downloaded and installed the latest Microsoft SDK. Does this contain both the CAPICOM and CryptoAPI libraries? Also, in order to use CAPICOM wha


reading from ini file fails with capicom again -
Hi there, I have made a login form which has a form_load inwhich it reads from an ini file the value "password". But I would like to encrypt the value so I have used capicom The ini files looks like this: [Login Gegevens] UserName=systeem Database=MVL00001 PassWo


Exception while publishing project -
Hi all, When I am publishing my project I ma getting following exception pls let me know if any body know the solution: Error 2 SignTool reported an error 'Failed to sign bin\Release\WitnessAVI.publish\\setup.exe. SignTool Error: Signtool requires CAPICOM version 2.1.0.1


Capicom - size of encrypted field -
I am using Capicom in a web page with VBscript to create encrypted data to put it into a database field. I can't find anywhere in the online doc etc. how to know who large the field will be once it is encrypted. Is there a way to know that, or is there a way to control that? I need


Hash, base64, binary encryption, secure random numbers [CAPICOM] -
I got bored today and decided I'd write a better example of using the CAPICOM library with visual basic. Requirements: Version: CAPICOM 2.1.0.1 http://www.microsoft.com/downloads/d...DisplayLang=en Instructions: 1. You will need to download and install this CAPICOM library in


Capicom and crypt binary files -
Hi ,i'm looking for a dll to encrypt birnary and text files , i think that capicom dll can do it ,but it's possible to encrypt binary files? ,i had tryed but i can't ,does anybody can show me an example? Thanks ,


CAPICOM 3DES not working in a few machines -
hello, i am using capicom.dll and try using 3des and developed a activex component. This activex works in some machines but in other machines it just gives me error. if i switch to des it works in all the machines. any one knows y 3des works in a few machines and not in a couple of o


[setup installers] -
hi there i ahve created an exe program which needs follwoing dlls 1) capicom.dll 2) comcat.dll 3) asycfilt.dll 4) msvbvm60.dll 5) oleaut32.dll 6) olepro32.dll 7) vb6stkit.dll 8) riched32.dll and the following ocx controls 1) comdlg32.ocx 2) mscomctl.ocx 3) richtx


Storing End-User Passwords In SQL Server Tables -
I am building a web application using SQL Server and VBScript ASPs. I would normally use CAPICOM to hash the passwords and store them in a user table. When the user wants to log in, I hash the string he supplied during the challenge and compare it to the value stored in the DB. Th


Need a sample of code. -
I need some code for winsock, I couldnt find it anywhere. If the connection is dropped, it connects to a different server. But I have 4 servers I want to switch around. So lets say one is z.z.z.z and it fails it goes to y.y.y.y and it fails it goes to x.x.x.x and it fails it g


Add Powerful Encryption To Your Visual Basic Programs -
I thought I would show you an easy way to add powerful encryption to your visual basic programs. Up till now, you either had to write the chipers in a fast language like C or deal with the CryptoAPI. Either way you went, it was very complex with uneven documentation. But lucky for the


Network Security Conundrum -
Alrite, so I'm ready to use the Capicom encryption component from microsoft to secure some messages between a client app and a server app. I plan on having them send certain messages back and forth that are often times identical, but their quantity is important. Anyways, here is the


reading .doc file in VB -
Hi, I have to read a .DOC file in VB. The functionality is much in the same way we read text file using file scripting object i.e. reading line by line. I think reading word document line by line is not possible(I may be wrong) so reading a paragraph will also do the trick. Any r


File encryption/decryption tool hogs entire processor!!! -
Hello folks, I have created a file encryption/decryption tool. When the file size is small it works fine but when the file size is big say 1Mb or so the machine freezes till the encryption/description process is complete. How can I reduce this processor load so that other process


Omish Computer Virus! -
All my friends got infected by it: I managed to contain it and came up with a better version: 1. Print these instructions: 2. Through your moniter againt the wall 3. Smash your tower 4. Nuke your system! 5. If all else fails install AOL 6. If this fails, install Windows ME


constant file reading stops everything else -
I have to constantly open and close a binary file to read the newest data into a textbox. I have a while loop to determine when the file is updated by looking at its size. This procedure uses all the cpu time and I am unable to use any of its controls. The file output doesn't appear in


[02/03] Problems reading in FTP filename -
I have been using the following code to extract characters contained within a filename: Code: Dim filename as String Dim fileDate as String filename = OpenFileDialogue2.filename fileDate = filename.Substring(filename.length - 15, 6) This works fine if the file is located on


Opening word documents [resolved] -
I've written an app that automates word and it works quite happily on my dev. machine. Of course, I go to install it on the test server and it falls on it's backside because it fails when I try to add a document to the App.Documents collection using the Open method. I have done a v


Check FolderExists Fails = Although its there -
Im having a slight problem here trying to detect if a folder exists. Now the trick here is that the folder contains UniCode characters. So I've tried a few methods, and they don't work, except with the FileSystemObject. Thats the only function which returns TRUE. Dim fso as


reading ,writing to log files -
i am trying to create a log file for my application .hence i need to write to a file say myapp.log every now and then after a particular process is complete. i need to write in to the file in the following format <date><time><action taken> i have seen a couple of


[VB6] CryptoAPI MD5 Hash -
The attached project is a simple demonstration of using the Windows Crypto functions to create a hash. The example produces an MD5 hash of a file or a typed in string and returns it in hex. It could easily be modified to return a Byte array of the hash, and could also easily perfor


[2005] Uploading File Problem: Page cannot be displayed -
While I'm debugging my WEB Application; I encounter this error message on the browser if I upload one of my files: "The page cannot be displayed". It only shows on the browser's page and not on the debugger. I don't know why, I think it is not on the file size because it


FileSystemObject Scripting runtime fails under Windows 98.. (Resolved) -
I'm using the MS Scripting Runtime for a program. As part of the form load event, I check fso.fileexists(etc) to verify that a data file is present in the app.directory path. I also check against the command() command line argument option in case the user specifies a custom data fi


decimal data type, Numbers > (2^31)-1 -
hey dudes i need to get the length of a large file(>2gb) i am using myfilesize= lof(myfile) i have myfilesize as a long (4 bytes?) this fails because the filesize is> (2^31)-1 so i was reading about people who have overcome this using API'S which i havnt a clue abo


Reading a single line from a variable. -
I was previously reading from a file, line by line, and sorting each line into an array as they came in. Now I am reading the file from the internet using the Inet component, so I am simply assigning the entire file to a variable. How would I read from the string line by line as I did


Reading lines in text file -
Hi everybody I have a question to ask......For example, after reading the first line (Header), i want to stop reading for 1 second and go on reading the next line and stop for another 1 second until it stops reading completely when it reach the checksum. I would be appreciated if an


reading content pdf file -
Hello, Could somebody help me: I recieve a pdf file with offers from a supplier I would like to read this offer in VB6 (change some prices) then make a .html file of it and put it on my website. The making of the file and the ftp is already worked out in my head just the opening and


reading the end of the file first -
How can i start reading a file from the last line to first??? I need to look for some data on a log file, so it´s faster to look from the ending of the file!! Thank you, Guilherme Costa


XML anyone -
Hi there, I'm trying to load an XML file using MSXML2.DOMDocument objXML.Load ("http://www.somewhere.com/File.xml") But this fails, I can't get the data. However, if I copy the file to my server and do the same call like: objXML.Load ("C:\File.xml")


reading file line by line -
I'm more familiar with reading an entire txt file and just putting it in a buffer. I'd like to know how to read a file line by line, which also uses the EOF keyword (or something like that) so it knows when to stop reading.


Reading a .CSV file ... -
Anybody out there have any experience in reading from a .CSV file? I basically want to loop through a file and grab just a couple of the fields out of it. Any help would be greatly appreciated.


[2008]Processstart Q -
If I use Shell(myapp.exe) how is it different than double clicking on the myapp.exe ? see the thing is that myapp.exe is written in other language(autoitscript) & it supposed to read contents of 1 .*txt file, but it fails to open that *.txt file if I use Shell(myapp.exe) in vb


Reading assigned data from end of file -
ive seen people add data to the end of the exe, then when the exe is ran the data is pulled from the end of it by reading the file and finding a pointer and then from that pointer reading to the end of the file and the exe runs as normal. does anyone here know how i could code this?


read file from specific point to the end -
I am attempting to read a file and write what I read to the end of another file. My problem is that I do not want to read the first part of the file I am reading. I need to find a "keyword" which tells me where to start reading and writing the information to the other file.


Reading EOF of excel file in VB -
Hi all I have a small Prob ... I am reading a Excel file in one my VBcode. I am having For ...Next loop for reading the Excel sheet. I want to read till the end of this Excel file. How can I get the end of file ? Is there EOF in VB ??How cab I use it? Currently I am ac


Win32 API - File Reading, Writing, etc. -
Is there a good tutorial or website that shows how to use the API functions for reading/writing files? I'm trying to make a class wrapper for these functions to hopefully replace the standard VB file/read write methods, because the API is generally faster and there's also the 2 GB l


Illegal Characters/Arrays -
In SQL is - an illegal character? Ie. If one of your record's fields has an & or " in it then it messes up the code, is it the same with the: - ??? Also, just a theoretical question, how easy is it to read a text file into several different arrays ie. Reading the amou


How to clear the contents of a text file -
Hi... How can I clear the contents of a text file? I have a text file that gets autopopulated with information coming from another application, and Im reading that file from within my VB6 application. However, after a while,. the file gets large, and the reading gets slower. I want to


Changing Reading TimeOut -
Hi, For sure their is a key in the registry or anywhere that control the reading timeout , I mean the time for keeping trying reading a bad part of file until reached the timeout and then return "Bad file/number .. " . Can any one help me where I can find this setting


Reading last line of text from a log... -
I am very new to Visual Basic and hoping that someone could help me get started, or at least pointed in the right direction. What I need to do is read the last line of a text log file and dump that into a string, then perform an action based off of what that string actually is.