Scripting Samples Index

IntroductionQuick ReferencesHow Do I ... TopicsBuilt-in ToolsScripting and Programming

Hpmbcalc provides some useful scripting samples to help you to implement a utility using Hpmbmath methods, these samples all have two versions: JScript version and VBScript version. You can access the sample code files by browsing the samples directory in your Hpmbcalc installation destination.

The following table describes the scripting samples:

Sample Description
ModPow.js
ModPow.vbs
Shows how to calculate a modular exponentiation.
ModInverse.js
ModInverse.vbs
Shows how to calculate the modular inverse of a number.
FermatTest.js
FermatTest.vbs
Shows how to perform a probabilistic primality test on a number using Fermat Test method.
Diffie-Hellman.js
Diffie-Hellman.vbs
Shows an example of Diffie-Hellman method for key agreement: 160-bit Diffie-Hellman exchange.
RSA-Encrypt.js
RSA-Encrypt.vbs
Shows an example of RSA public-key encryption with artificially small parameters.