10-07-2008 04:33 PM
maak wrote:yes sir u rite that is wat i want to do but i want to treat each alphabet spreatly than it will be more accurate
It's either right or wrong. "Accuracy" has no meaning here. 🙂
You need to use fixed width numbers padded with 0 to a width of two, or you need to use some type of delimiters.
10-07-2008 04:36 PM
maak wrote:yes sir u rite that is wat i want to do but i want to treat each alphabet spreatly than it will be more accurate
Exactly what does that mean? Do you want to have spaces between each set of numbers that represent one letter?
By the way, they are "letters", a group of letters make up an "alphabet".![]()
10-07-2008 04:44 PM
sir
look for example if i write AHAD i want to encrypt it so want i m tryng to do is letter A is taken as 0 then 7 is added in it and wat ever is the seventh letter that is given out
AHAD=0704
so 0+7=7
7+7=14
0+7=7
4+7=11
so nw wat ever is against
7=
14=
7=
11=
is diplayed
10-07-2008 04:51 PM
Doesn't fit the description of "encryption".
Looks like you are trying to calculate a checksum, perhaps? Who knows?
Why don't you take two steps back and tell us in more general terms what you need. Do you have a link that describes the algoritm you are trying to implement?
10-07-2008 04:54 PM - edited 10-07-2008 04:55 PM
This code will take your string, let you enter an offset and report back the "encoded" version. Is this what you want?
10-07-2008 04:55 PM
10-07-2008 04:56 PM
10-07-2008 04:58 PM
maak wrote:
sir plz just tell me how can i treat each letter speratley and assing the numeric values to thm
Use the code right above your post, but don't convert it back to a string at the end. Now it's "numeric". 😄
10-07-2008 05:12 PM
sir plz help me out
10-07-2008 06:19 PM
Please take your time and write a few paragraphs explaining exactly what you want. We offered plenty of solutions and asked clarifying questions, so it is up to you to be more clear what you need and what's wrong with the solutions offered so far.
It would also help if you could write complete sentences. It is not suitable to communicate in text message style (e.g. "sir plz help me out"). We don't pay by the byte, so use as many charcters as you possibly need to make the problem more clear. Good luck! 🙂
Maybe you could even make a small example VI that contains a control with typical input data and an indicator of what kind of result you expect as default values. 🙂