PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 25 → XCODE 12 WORDS / 12 Palavras = String to BufferToPhrase = Exemplo de ENCODE e DECODE
XCODE 12 WORDS / 12 Palavras = String to BufferToPhrase = Exemplo de ENCODE e DECODE
Iniciado por Boller, jan., 18 2022 9:38 PM - Sem resposta
Membro registado
3.651 mensagems
Popularité : +175 (223 votes)
Publicado em janeiro, 18 2022 - 9:38 PM
BOA TARDE,

Exemplo de ENCODE e DECODE

//ENCODE
//String to BufferToPhrase
// Encode
MyBuffer is Buffer = Encode("teste", encodeBASE64)
Trace (BufferToPhrase(MyBuffer, languageEnglish)

// contains "gold deny ozone silk inspire ozone"


E

//Decode
//String to BufferToPhrase
sPhraseEN is string = "gold deny ozone silk inspire ozone"
MyBuffer is Buffer = (BufferToHexa(PhraseToBuffer(sPhraseEN)))
sText is Buffer = HexaToBuffer(MyBuffer)
Trace (Decode(sText, encodeBASE64))

//contains "teste"


BY JOSÉ WILLEM

--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/