|
Whitebeam Object Definition
|
Method Description
WbString.sign()
Generate a digital signature of some data
Syntax
WbString or JS Array = WbString.sign(input_data, algorithm, options)
Parameters
The 'WbString.sign' method takes 3 parameters:
Name | Type/Value | Range/Length | Description | input_data | string | | Required. Digitally sign this data. Note this parameter may be either and string or a Binary object | algorithm | string | | Required. The signature algorithm to be used, eg 'SHA1' | options | struct WbString.Options | see definition | Required. Switches |
Results
The 'WbString.sign' method returns WbString or JS Array:
Type/Value | Range/Length | Description |
WbString or JS Array |
  |
Returns the suitably encoded version of the digital signature
|
Remarks Note that a signature uses both encryption and hashing. The options.key must be either the contents of an RSA or DSA public key
TBD |
|
(loadtime : 9ms) |