Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

C# Simple ASCII encoding

I love browsing through my old projects. I found this little encoding function i made to turn strings into ASCII values.

But please note that when trying to use this function don't use "advanced" chars (characters with an ascii value > 999) as the function can't handle them (it's easily modified though if you need it)

Basically what it does is check if the value is under 100, if it is it formats the value like "9(ascii #)" so it can be read in the decode function. I don't know what this could be used for but maybe for your strings in stubs?

Encode:

http://pastie.org/1196502

Decode:

http://pastie.org/1196504

Example usage:

Code
string str = "abc";
str = encodestr(str); // "str" is now holding "997998999"

[IMG]http://i350.photobucket.com/albums/q408/ubbe12/ascii.gif[/IMG]
Probably coding some useless shit.
This is a nice little snippet :)

I can use this for something, possibly. Perfect timing though ;)

On another note : Get on msn ! :D
█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█
██ 📿 🔮 🫀 ⚡️ 🥣 ██
█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█
(Oct 3, 2010 06:13 AM)Local Celeb Wrote:  This is a nice little snippet :)

I can use this for something, possibly. Perfect timing though ;)

On another note : Get on msn ! :D

I am on MSN. What's your address? 😝
Probably coding some useless shit.
Oh woops. I was on the wrong one :P

[email protected]
█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█
██ 📿 🔮 🫀 ⚡️ 🥣 ██
█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█
Nice Post.. and nicely coded C# is awsome
Nice little encryption . I may use this in my project.

Thanks for share.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Source] by QismonNov 27, 2024 04:29 AM 2 308 Nov 27, 2024 04:29 AM
Last Post: mikeyp
by hanterokJun 26, 2023 01:04 PM 4 398 Jun 26, 2023 01:04 PM
Last Post: hanterok
[Shell] by HackooJul 9, 2020 02:04 PM 11 678 Jul 9, 2020 02:04 PM
Last Post: Forrest74