Handle operation on crypto sensor.

Usage

crypto keyword is needed to instanciate this sting.

var crypto = require('crypto');

Data accessors

Methods

Full Example

var crypto = require('crypto');

var dataResult = crypto.data();
var sha1Result = crypto.sha1(message, salt);

timestamp

Retrieve the represents the time of the operation..

timestamp();

Parameters

  • None.

Return

  • timestamp : Long, represents the time of the operation.

data

Returns every available seed.

data();

Parameters

  • None.

Returns

sha1

Hash the input with the sha1 algorithm.

sha1(messagesalt);

Parameters

  • message (String): The message to hash.
  • salt (String): The salt of the hash.

Returns

  • String