PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 25
→
HASH Windev
HASH Windev
Started by Willian Fernando, Jun., 01 2016 10:07 PM - 1 reply
Connect yourself…
Willian Fernando
#1
Registered member
123 messages
Popularité : +46 (46 votes)
Posted on June, 01 2016 - 10:07 PM
para Gerar um HASH
hash_inicial is Buffer
hash_inicial
=
HashString
(
HA_HMAC_MD5_128
,
"abc"
)
//Exemplo MD5
hash_esperado is
string
FOR
n
Char
=
1
TO
Length
(
hash_inicial
)
hash_esperado
+
=
NumToString
(
Asc
(
hash_inicial
[
[
n
Char
]
]
)
,
"02x"
)
END
//no final hash_esperado vai conter o resultado
Copyright = Tom Silva
--
Atte. Willian Fernando
Message modified, June, 01 2016 - 10:10 PM
Report
0
0
Willian Fernando
#2
Registered member
123 messages
Popularité : +46 (46 votes)
Posted on June, 01 2016 - 10:43 PM
Correção
hash_inicial is Buffer
hash_inicial
=
HashString
(
HA_MD5_128
,
"abc"
)
//Exemplo MD5 deve-se usar HA_MD5_128
hash_esperado is
string
FOR
n
Char
=
1
TO
Length
(
hash_inicial
)
hash_esperado
+
=
NumToString
(
Asc
(
hash_inicial
[
[
n
Char
]
]
)
,
"02x"
)
END
--
Atte. Willian Fernando
Report
0
0
→ Go back to WINDEV 25
WINDEV 25
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text