Handbook
Glossary
encode-password ( string salt -- bytes )
Vocabulary
furnace
.
auth
Inputs
string
a
string
salt
an
integer
Outputs
bytes
a
byte-array
Word description
Encodes a password with the current authentication realm's checksum.
Definition
USING:
accessors
checksums
endian
io.encodings.string
io.encodings.utf8
kernel
namespaces
sequences
;
IN:
furnace.auth
:
encode-password
( string salt -- bytes )
[
utf8
encode
]
[
4
>be
]
bi*
append
realm
get
checksum>>
checksum-bytes
;