Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Class Module Question

Status
Not open for further replies.

DarkMercenary44

Technical User
May 19, 2000
55
US
I'm making a encryption program that will allow encryption for email and AOL IM. I am having a problem with the encryption classes.

I dim a new instance of the class like this

Dim newblow as new clsblowfish

when i encrypt something, with a password, then encrypt it again with the same password and try to decrypt it then it says byte descriptor is to large

I'm encrypting the original text on the second time, notthe once encrypted text

code looks like this

dim newblow as new clsblowfish

temptext=newblow.encryptstring("blahblahblah","password)
text1.text=temptext
temptext1=newblow.decryptstring(temptext,"password")
text2.text=temptext1

end sub

if this is a button and I click it again and it goes to decrypt it gives me the error message, any have any ideas.. How do you destroy a class once you create an instance of it (destroy the instance I mean) DarkMercenary
darkmercenary44@earthlink.net

In the real world
As in dreams
Nothing is quite
What it seems
:Book of Counted Sorrows
 
to destroy the instance of the class set the 'newblow' variable to nothing.

Code:
Set newblow = Nothing
Ruairi
ruairi@logsoftware.com
Experienced with:

VB6, SQL Server, QBASIC, C(unix), MS Office VBA solutions

ALSO: Machine Control/Automation using GE and Omron PLC's and HMI(human machine interface) for industrial applications
 
Thanks , it works now, without the error message DarkMercenary
darkmercenary44@earthlink.net

In the real world
As in dreams
Nothing is quite
What it seems
:Book of Counted Sorrows
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top