473,770 Members | 2,217 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to decrypt text?

How to decrypt this text, what algorithm used to encode text, how to
recreate algorithm?

%c3%99%c3%a3%c3 %af%c3%b3%c3%94 %c3%92%c3%89%c3 %81%c3%8c%c3%ae %c3%ba
%c3%b9%c3%9b%c3 %bc%c2%b0%c2%b2 %c3%aa%c3%a4%c3 %a9%c3%b1%c3%bc
%c3%a9%c3%b2%c3 %ac%c3%ad%c3%86 %c3%95%c3%8c%c3 %8c%c3%a1%c3%a9 %c3%aa
%c3%b4%c3%bc%c2 %b0%c2%b2%c3%ac %c3%a9%c3%ac%c3 %b1%c3%a6

decoding with unescape does not work it seems.

Regards,

Sep 14 '07 #1
3 6858
mistral a écrit :
How to decrypt this text, what algorithm used to encode text, how to
recreate algorithm?

%c3%99%c3%a3%c3 %af%c3%b3%c3%94 %c3%92%c3%89%c3 %81%c3%8c%c3%ae %c3%ba
%c3%b9%c3%9b%c3 %bc%c2%b0%c2%b2 %c3%aa%c3%a4%c3 %a9%c3%b1%c3%bc
%c3%a9%c3%b2%c3 %ac%c3%ad%c3%86 %c3%95%c3%8c%c3 %8c%c3%a1%c3%a9 %c3%aa
%c3%b4%c3%bc%c2 %b0%c2%b2%c3%ac %c3%a9%c3%ac%c3 %b1%c3%a6

decoding with unescape does not work it seems.
using decodeURI:

ÙãïóÔÒÉ Ìîú
ùÛü°²êä ñü
éòì*ÆÕÌ áéê
ôü°²ìéì æ
Ok, that's still somewhat meaningless... but at least you know how it
has been encoded - now you just have to guess how to decrypt it !-)
Sep 14 '07 #2
mistral said the following on 9/14/2007 5:57 AM:
How to decrypt this text, what algorithm used to encode text, how to
recreate algorithm?
That depends - directly - on where that text came from.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Sep 14 '07 #3
mistral wrote:
How to decrypt this text, what algorithm used to encode text, how to
recreate algorithm?

%c3%99%c3%a3%c3 %af%c3%b3%c3%94 %c3%92%c3%89%c3 %81%c3%8c%c3%ae %c3%ba
%c3%b9%c3%9b%c3 %bc%c2%b0%c2%b2 %c3%aa%c3%a4%c3 %a9%c3%b1%c3%bc
%c3%a9%c3%b2%c3 %ac%c3%ad%c3%86 %c3%95%c3%8c%c3 %8c%c3%a1%c3%a9 %c3%aa
%c3%b4%c3%bc%c2 %b0%c2%b2%c3%ac %c3%a9%c3%ac%c3 %b1%c3%a6

decoding with unescape does not work it seems.
The proprietary unescape() method AFAIK can only decode percent-encoded
ASCII/ISO-8859-1 characters. The standards compliant decodeURI() method
decodes percent-encoded strings as if the bytes denoted UTF-8 code units
(ES3, 15.1.3.1). Hence your result --

Ùãïà ÔÒÉà ÃŒÃ®Ãº ¹Ã›Ã¼Â° ²êäà ñüéà ²Ã¬Ã*Æ •ÃŒÃŒÃ¡ éêôà °²ìà ©Ã¬Ã±Ã¦

-- and the result that Bruno Desthuilliers posted.

The above, however, looks more like UTF-16 code units where each byte
sequence was percent-encoded. So the following might produce output that
makes sense:

var s = [
"%c3%99%c3%a3%c 3%af%c3%b3%c3%9 4%c3%92%c3%89%c 3%81%c3%8c%c3%a e%c3%ba",
"%c3%b9%c3%9b%c 3%bc%c2%b0%c2%b 2%c3%aa%c3%a4%c 3%a9%c3%b1%c3%b c",
"%c3%a9%c3%b2%c 3%ac%c3%ad%c3%8 6%c3%95%c3%8c%c 3%8c%c3%a1%c3%a 9%c3%aa",
"%c3%b4%c3%bc%c 2%b0%c2%b2%c3%a c%c3%a9%c3%ac%c 3%b1%c3%a6"
].join("");

window.alert(
s.replace(/%([0-9a-f]{2})%([0-9a-f]{2})/g,
function(s, p1, p2)
{
return String.fromChar Code(parseInt(p 1 + p2, 16));
}));

That displays a character string of 41 Hangul syllables (U+AC00 to U+D7A3)
here. Hangul is described by Wikipedia as being the most used alphabet in
Korea.

The corresponding encoding algorithm can be derived from the above
decoding algorithm, and is left as an exercise to the reader.
HTH

PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
Sep 14 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
29280
by: Jimski | last post by:
Hello all, I am having a problem where I get an error message when I call FlushFinalBlock when decrypting my encrypted text. I am using the Rijndael algorithm. The error message is "Length of the data to decrypt is invalid" and occurs on the csDecrypt.FlushFinalBlock.
4
9081
by: Hrvoje Voda | last post by:
Does anyone knows a good example of how to encrypt/decrypt a string? Hrcko
8
8185
by: Gidi | last post by:
Hi, Is there Buid-In fuction in C# that Encrypt and Decrypt strings? i have a textbox which i'm writing into file, and i want to encrypt it before writing, i'm not looking for something fancy, just for a simple Encryption and Decryption function. thanks, Gidi.
7
17879
by: Dica | last post by:
i've used the sample code from msdn to create an encyption/decryption assembly as found here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT10.asp i'm able to encrypt and then decrypt data okay as in the following code: // encrypt the data // Encryptor enc = new Encryptor(EncryptionAlgorithm.TripleDes); byte key = Encoding.ASCII.GetBytes("0123456789012345");
1
15963
by: smilly | last post by:
I get this error when I try to decrypt the string that is encrypted: I would like to know what the solution is because this should work :-) {"The data to be decrypted exceeds the maximum for this modulus of 128 bytes."} code: // Read public key into a string
0
3373
by: Hannibal111111 | last post by:
I found this code on a site for doing string encryption/decryption. The string will encrypt fine, but I get this error when I try to decrypt. Any idea why? I posted the code below. The error actually points to this line of code in byte decrypt function: cs.FlushFinalBlock(); public static byte encrypt(byte clearData, byte Key, byte IV)
3
8298
by: JDeats | last post by:
I have some .NET 1.1 code that utilizes this technique for encrypting and decrypting a file. http://support.microsoft.com/kb/307010 In .NET 2.0 this approach is not fully supported (a .NET 2.0 build with these methods, will appear to encrypt and decrypt, but the resulting decrypted file will be corrupted. I tried encrypting a .bmp file and then decrypting, the resulting decrypted file under .NET 2.0 is garbage, the .NET 1.1 build works...
0
1187
by: lougreally | last post by:
Hi I testing aspencrypt and it looks great however Im not sure how I can decrypt a field once Ive encrypted it and sent to an sql database. The samples with the program only show DecryptText(blob) and therefore I cant Decrypt Text 2 solutions Either I store the blob in the db (have tried image and binary, I get a mismatch each time calling DecryptText) or I figure out if theres a function to Decrypt Text ie a Text string.
1
4836
by: MimiMi | last post by:
I'm trying to decrypt a byte array in java that was encrypted in C#. I don't get any error messages, just a result that's completely not what I was hoping for. I think I am using the same type of algorithm, initialization vector (IV), mode, padding, key etc, but I just don't get the two languages to "understand each other", or, in other words, I must be missing out on something crucial. I encrypt a byte array in C# and send over the byte...
2
17969
by: MimiMi | last post by:
I'm trying to decrypt a byte array in java that was encrypted in C#. I don't get any error messages, just a result that's completely not what I was hoping for. I think I am using the same type of algorithm, initialization vector (IV), mode, padding, key etc, but I just don't get the two languages to "understand each other", or, in other words, I must be missing out on something crucial. I encrypt a byte array in C# and send over the byte...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10102
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9910
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8933
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7460
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6712
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.