Win an Ipad
  Developer   Documents   SHA1

SHA1

This article explains SHA1 encryption in Moscrif.

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";

 MD5   SHA1   AES 
Write a Comment (0)
Subject
Please complete this mandatory field.
HTML Tags Not Allowed!
Comment
Please complete this mandatory field.