SHA1
This class represents implementation of the SHA1 hash algorithm. In cryptography, SHA-1 is a cryptographic hash function designed by the National Security Agency and published by the NIST as a U.S. Federal Information Processing Standard.
Method string encrypts string provided as parameter.
var encr = SHA1.string("Moscrif is the best mobile cross-platform SDK.");
//encr contains: L4GDlgmVKfkBccLKRasdUFZqwC0=
console << encr.toString() << "\n";
Method file encrypts data from file source provided as parameter.
//app://input.txt contains: Moscrif is the best mobile cross-platform SDK.
var encr = SHA1.file("app://input.txt");
//encr contains: L4GDlgmVKfkBccLKRasdUFZqwC0=
console << encr.toString() << "\n";