PC Review


Reply
Thread Tools Rate Thread

Decrypt and encrypt text - in Korean

 
 
Darin
Guest
Posts: n/a
 
      30th Aug 2004
I have the following routines:

Public Function DecryptText(ByVal in_text As String) As String
Dim strKey As String = "ROCK"
Dim i As Integer
Dim c As Integer
Dim out_buff As String

For i = 1 To Len(RTrim(in_text))
c = Asc(Mid$(in_text, i, 1))
c -= Asc(Mid(strKey, (i Mod Len(strKey)) + 1, 1))
out_buff &= Chr(c And &HFF)
Next
Return RTrim(out_buff)
End Function

Public Function EncryptText(ByVal in_text As String) As String
Dim strKey As String = "ROCK"
Dim i As Integer
Dim c As Integer
Dim out_buff As String

For i = 1 To Len(RTrim(in_text))
c = Asc(Mid$(in_text, i, 1))
c += Asc(Mid(strKey, (i Mod Len(strKey)) + 1, 1))
out_buff &= Chr(c And &HFF)
Next
Return out_buff
End Function

They work fine on all computers the have ever been used on. Now, we sold
the software to a company and their computers (WinXP Pro) have the
korean language on them, and it is displaying windows messages in
Korean. How can these routines get messed up when the user has Korean?

Darin

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Encrypt in 1.1 and Decrypt in 2.0 Frank Microsoft ASP .NET 0 24th Aug 2007 07:56 PM
Encrypt and Decrypt in C# =?Utf-8?B?R2lkaQ==?= Microsoft C# .NET 8 19th Oct 2005 03:24 PM
encrypt decrypt xml Rob Blij Microsoft Dot NET Compact Framework 6 19th Aug 2005 04:03 PM
encrypt/decrypt Hrvoje Voda Microsoft C# .NET 4 9th Apr 2005 08:54 AM
Encrypt in c# / decrypt in php Matt Microsoft C# .NET 1 15th Oct 2004 10:18 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:40 PM.