function hexEncoder(str)
dim strEncoded, i
strEncoded = ""
for i = 1 to Len(str)
strEncoded = strEncoded + "%" + Hex(Asc(Mid(str, i, 1)))
next
hexEncoder = strEncoded
end function
function hexDecoder(str)
dim strDecoded, i, hexValue
strDecoded = ""
for i = 2 to Len(str)
hexValue = ""
while Mid(str, i, 1) <> "%" and i <= Len(str)
hexValue = hexValue + Mid(str, i, 1)
i = i+1
wend
strDecoded = strDecoded + chr(CLng("&h" & hexValue))
next
hexDecoder = strDecoded
end function
Publicidade
|
|
Page 1 of 1
Codificação e decodificação Hex para string
#1
Posted 04 October 2011 - 02:23 PM
Codificação e decodificação Hex string
Share this topic:
Page 1 of 1
Similar Topics
| Topic | Forum | Started By | Stats | Last Post Info | |
|---|---|---|---|---|---|
|
Sebrae terá curso para desenvolvedores de games
|
Notícias |
Notícias
|
|
|
|
Microsoft usa computadores da Apple para produzir anúncios
|
Notícias |
Notícias
|
|
|
|
Google enfrenta Microsoft com programa para negócios na internet
|
Notícias |
Notícias
|
|
|
|
URL Parametros, passagem de Variavel via URL
|
PHP |
lampiao_muléstia
|
|
|
|
Desenvolvedor em Flash para Games
|
Mercado / Vagas |
Tiago Pretel
|
|
|
|
Hackers modificam máquina de escrever para receber Twitter
|
Notícias |
Notícias
|
|
|
|
Mensagem na Web é presente high tech para namorados
|
Notícias |
Notícias
|
|
|
|
Aparelho disfarça ruídos do ambiente para garantir o sono
|
Notícias |
Notícias
|
|
Publicidade
|
|

Help













