Follow us on Twitter!
Become the change you seek in the world. - Gandhi
Sunday, April 20, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 25
Guests Online: 23
Members Online: 2

Registered Members: 82843
Newest Member: hx47
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Author

Arrays and more in VB.Net


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 16-09-06 23:59
Ok, I have vb.net 2003 including the handbook (comes with the vb.net download). Anyways, I am working on a project that will take text you input into it, then change it to a simple encryption I have made, then takes those strings (or arrays, depending if I can do it this way) and put it into binary. What I need to to know is....

*What all can be done with an array, and an array is like a list right?

*If an array is like a list, can whatever you list be given values

*How can I take text inputed and "chop it up" so I can get the values for each letter?

*How do I get remainders to be known in math?

Any help will be appreciated!


Author

RE: Arrays and more in VB.Net


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 17-09-06 11:24
anyone able to help?


Author

RE: Arrays and more in VB.Net


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 19-09-06 00:10
bump!


Author

RE: Arrays and more in VB.Net

bl4ckc4t
Member

Your avatar

Posts: 591
Location: /etc/
Joined: 07.03.06
Rank:
Wiseman
Posted on 19-09-06 08:51
Read up on encryption, learn the hashing function of VB.NET

Bl4ckC4t


Author

RE: Arrays and more in VB.Net


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 19-09-06 19:20
*If an array is like a list, can whatever you list be given values

*How can I take text inputed and "chop it up" so I can get the values for each letter?

*How do I get remainders to be known in math?

1. An array can be indexed by using array(x), where array is the array name and x is the item's location in the array. To assign a value, just use a statement like array(x)=value, where value is the value you want to assign.

2. If I recall right, strings can be accessed like arrays. However, for most of my "string chopping", I use nested Strings.Left and Strings.Right functions. For instance, to get the ASCII value of each character in a string, I would do something like:

Dim x as Integer
Dim strText as String

strText = whatever

Dim Ascii(strText.Len) as Integer

For x = 1 to strText.Len
Ascii(x) = CInt(Strings.Left(Strings.Right(strText, strText.Len-(x-1)),1))
Next

This may not be perfect, but this is the general idea, and I'm sure there's an easier way to do this... I'm just too lazy to read up on accessing a string like an array, so there's a possible solution.

3. Finding a remainder like in math is as simple as using the Mod operator. If I recall right, you need to import System.Math to use it, but Mod will return the remainder from dividing by the number after Mod (e.g., 14 Mod 3 = 2).

Hope that helps some.