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 | |
|---|---|---|---|---|---|
|
PT ouve marqueteiro de Obama para aperfeiçoar campanha presidencial pela internet
|
Notícias |
Notícias
|
|
|
|
Telebrás será gestora de rede de fibras óticas para plano de banda larga
|
Notícias |
Notícias
|
|
|
|
Como desistalo o mysql ??
Como desistalo uma versão para por outra |
MySQL |
_Fox_
|
|
|
|
Projeto do MIT rastreia para onde vai o lixo
|
Notícias |
Notícias
|
|
|
|
DÚVIDA SOBRE XML PARA PLAYER
Como eu faço o XML? eu tinha esse player e agora perdi o xml |
Flash & ActionScript |
Ramonguerra
|
|
|
|
Mini-helicóptero usa garra para transportar objetos
|
Notícias |
Notícias
|
|
|
|
Empresa lança aplicativo VoIP para iPhone
|
Notícias |
Notícias
|
|
|
|
Agenda Eletrônica usando Access
Alguém pode fazer para min... |
ASP |
Slim Thug
|
|
Publicidade
|
|

Help













