sha1.str
(since 1.0)
Hash a string using sha1 algorithm
Description
string
sha1.str
(
string string, [string secret] )
Used to encore a string using sha1 algorithm, you can specify the secret key has second argument.
Parameters
string
The string to hash
secret
The secret key to use
Return values
The sha1 digest
Examples
var result = Ape.sha1.str("hello world");
//result = 2aae6c35c94fcfb415dbe95f408b9ce91ee846ed
var result = Ape.sha1.str("hello world", "mysecretkey");
//result = 529a42c50c09857dbe9a5891d6b453d543aaf434
User notes
# No comment
Post a note
CollaborAPE to our wiki !
Find the information you need on the APE Official Wiki : Install, Server, JSF, Help...
