Whitebeam Object Definition

Site Map
 
Home
 
Application Guide
Reference
  Installation
  Configuration
  XML Markup
  JavaScript Classes
  ROM
  Templates
  Environment
  Dev Process
  Tools
  External Links
  Example libraries
Community
Contact Whitebeam
To-Do
Download
Credits
Licence
Whitebeam Users
 
 
 

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_datastring  Required. Digitally sign this data. Note this parameter may be either and string or a Binary object
algorithmstring  Required. The signature algorithm to be used, eg 'SHA1'
optionsstruct WbString.Optionssee 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

Whitebeam release 1.3.36
(loadtime : 9ms)