publish
plugins.it2be_cryptor info


Servoy Properties Summary
String build
Date buildDate
String component
Number version


Servoy Methods Summary
String BLOWFISHdecrypt( String )
String BLOWFISHdecrypt( String, String )
String BLOWFISHencrypt( String, String )
String BLOWFISHencrypt( String )
byte[] Base64decode( String )
String Base64encode( byte[] )
String CRC32( String )
String CRC32( byte[] )
Boolean CRC32equals( byte[], String )
Boolean CRC32equals( String, String )
String DESdecrypt( String, String )
String DESdecrypt( String )
String DESencrypt( String, String )
String DESencrypt( String )
String MD5( String )
String MD5( byte[] )
Boolean MD5equals( String, String )
Boolean MD5equals( byte[], String )
String SHA( byte[] )
String SHA( String )
Boolean SHAequals( String, String )
Boolean SHAequals( byte[], String )


Servoy Properties Details


build
String  build
Returns the current version (major, minor, build)
Returns
String  build String

Supported Clients
SmartClient, WebClient, NGClient


buildDate
Date  buildDate
Returns date release date
Returns
Date  date Date

Supported Clients
SmartClient, WebClient, NGClient


component
String  component
Returns the component name
Returns
String  name String

Supported Clients
SmartClient, WebClient, NGClient


version
Number  version
Returns the current version (major, minor)
Returns
Number  version Double

Supported Clients
SmartClient, WebClient, NGClient

Servoy Methods Details


BLOWFISHdecrypt
String  BLOWFISHdecrypt( String )
Return a decrypted string that was previously Blowfish encrypted.
Parameters
String  value  the value

Returns
String  decrypted String

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Encrypt and decrypt using BlowFish encryption on a string

// Encrypt without a key (the standard key will be used)
var eString = plugins.it2be_cryptor.BLOWFISHencrypt("string to be encrypted");

// Decrypt without a key (standard key will be used)
application.output(eString +" = " + plugins.it2be_cryptor.BLOWFISHdecrypt(eString));


// Make sure that you use the same key as you used to encrypt
var eKey = "yourkey";

// Encrypt with your own key (for higher security)
var eString = plugins.it2be_cryptor.BLOWFISHencrypt("string to be encrypted", eKey);

// Decrypt with your own (previously used) key
application.output(eString +" = " + plugins.it2be_cryptor.BLOWFISHdecrypt(eString, eKey));


BLOWFISHdecrypt
String  BLOWFISHdecrypt( String, String )
Return a decrypted string that was previously Blowfish encrypted.
Parameters
String  value  the value
String  key  the key

Returns
String  decrypted String

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Encrypt and decrypt using BlowFish encryption on a string

// Encrypt without a key (the standard key will be used)
var eString = plugins.it2be_cryptor.BLOWFISHencrypt("string to be encrypted");

// Decrypt without a key (standard key will be used)
application.output(eString +" = " + plugins.it2be_cryptor.BLOWFISHdecrypt(eString));


// Make sure that you use the same key as you used to encrypt
var eKey = "yourkey";

// Encrypt with your own key (for higher security)
var eString = plugins.it2be_cryptor.BLOWFISHencrypt("string to be encrypted", eKey);

// Decrypt with your own (previously used) key
application.output(eString +" = " + plugins.it2be_cryptor.BLOWFISHdecrypt(eString, eKey));


BLOWFISHencrypt
String  BLOWFISHencrypt( String, String )
Return a decrypted string that was previously Blowfish encrypted.
Parameters
String  value  the value
String  key  the key

Returns
String  decrypted String

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Encrypt and decrypt using BlowFish encryption on a string

// Encrypt without a key (the standard key will be used)
var eString = plugins.it2be_cryptor.BLOWFISHencrypt("string to be encrypted");

// Decrypt without a key (standard key will be used)
application.output(eString +" = " + plugins.it2be_cryptor.BLOWFISHdecrypt(eString));


// Make sure that you use the same key as you used to encrypt
var eKey = "yourkey";

// Encrypt with your own key (for higher security)
var eString = plugins.it2be_cryptor.BLOWFISHencrypt("string to be encrypted", eKey);

// Decrypt with your own (previously used) key
application.output(eString +" = " + plugins.it2be_cryptor.BLOWFISHdecrypt(eString, eKey));


BLOWFISHencrypt
String  BLOWFISHencrypt( String )
Return a decrypted string that was previously Blowfish encrypted.
Parameters
String  value  the value

Returns
String  decrypted String

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Encrypt and decrypt using BlowFish encryption on a string

// Encrypt without a key (the standard key will be used)
var eString = plugins.it2be_cryptor.BLOWFISHencrypt("string to be encrypted");

// Decrypt without a key (standard key will be used)
application.output(eString +" = " + plugins.it2be_cryptor.BLOWFISHdecrypt(eString));


// Make sure that you use the same key as you used to encrypt
var eKey = "yourkey";

// Encrypt with your own key (for higher security)
var eString = plugins.it2be_cryptor.BLOWFISHencrypt("string to be encrypted", eKey);

// Decrypt with your own (previously used) key
application.output(eString +" = " + plugins.it2be_cryptor.BLOWFISHdecrypt(eString, eKey));


Base64decode
byte[]  Base64decode( String )
Returns a decoded array of bytes that was previously Base64 encoded.
Parameters
String  value  the value

Returns
byte[]  decoded byte[]

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Returns a decoded array of bytes that was previously Base64 encoded.
var encodedByte = plugins.it2be_cryptor.Base64encode(plugins.http.getMediaData('media:///yourimage.gif'));

application.output(encodedByte);

var decodedByte = plugins.it2be_cryptor.Base64decode(encodedByte);


Base64encode
String  Base64encode( byte[] )
Returns an Base64 encoded string.
Parameters
byte[]  value  the value

Returns
String  encoded String

Supported Clients
SmartClient, WebClient, NGClient

Sample
Returns an Base64 encoded string.
var encodedByte = plugins.it2be_cryptor.Base64encode(plugins.http.getMediaData('media:///yourimage.gif'));

application.output(encodedByte);

var decodedByte = plugins.it2be_cryptor.Base64decode(encodedByte);


CRC32
String  CRC32( String )
Return the computed checksum (string) of the given string or array of bytes.
Parameters
String  value  the value

Returns
String  hash String

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Return the computed checksum (string) of the given string or array of bytes.
var checksum = plugins.it2be_cryptor.CRC32(plugins.http.getMediaData('media:///yourimage.gif'));

application.output(checksum);
application.output(plugins.it2be_cryptor.CRC32equals(plugins.http.getMediaData('media:///yourimage.gif'), checksum));

var checksum = plugins.it2be_cryptor.CRC32('string to calculate');

application.output(checksum);
application.output(plugins.it2be_cryptor.CRC32equals('string to calculate', checksum));


CRC32
String  CRC32( byte[] )
Return the computed checksum (string) of the given string or array of bytes.
Parameters
byte[]  value  the value

Returns
String  hash String

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Return the computed checksum (string) of the given string or array of bytes.
var checksum = plugins.it2be_cryptor.CRC32(plugins.http.getMediaData('media:///yourimage.gif'));

application.output(checksum);
application.output(plugins.it2be_cryptor.CRC32equals(plugins.http.getMediaData('media:///yourimage.gif'), checksum));

var checksum = plugins.it2be_cryptor.CRC32('string to calculate');

application.output(checksum);
application.output(plugins.it2be_cryptor.CRC32equals('string to calculate', checksum));


CRC32equals
Boolean  CRC32equals( byte[], String )
Check the given string or (array of) bytes against the checksum.
Parameters
byte[]  value  the value
String  code  the code

Returns
Boolean  equals boolean

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Check the given string or (array of) bytes against the checksum.
var checksum = plugins.it2be_cryptor.CRC32(plugins.http.getMediaData('media:///yourimage.gif'));

application.output(checksum);
application.output(plugins.it2be_cryptor.CRC32equals(plugins.http.getMediaData('media:///yourimage.gif'), checksum));

var checksum = plugins.it2be_cryptor.CRC32('string to calculate');

application.output(checksum);
application.output(plugins.it2be_cryptor.CRC32equals('string to calculate', checksum));


CRC32equals
Boolean  CRC32equals( String, String )
Check the given string or (array of) bytes against the checksum.
Parameters
String  value  the value
String  code  the code

Returns
Boolean  equals boolean

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Check the given string or (array of) bytes against the checksum.
var checksum = plugins.it2be_cryptor.CRC32(plugins.http.getMediaData('media:///yourimage.gif'));

application.output(checksum);
application.output(plugins.it2be_cryptor.CRC32equals(plugins.http.getMediaData('media:///yourimage.gif'), checksum));

var checksum = plugins.it2be_cryptor.CRC32('string to calculate');

application.output(checksum);
application.output(plugins.it2be_cryptor.CRC32equals('string to calculate', checksum));


DESdecrypt
String  DESdecrypt( String, String )
Return a decrypted string that was previously DES encrypted.
Parameters
String  value  the value
String  key  the key

Returns
String  decrypted String

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Encrypt and decrypt using DES encryption on a string

// Encrypt without a key (the standard key will be used)
var eString = plugins.it2be_cryptor.DESencrypt("string to be encrypted");

// Decrypt without a key (standard key will be used)
application.output(eString +" = " + plugins.it2be_cryptor.DESdecrypt(eString));


// Make sure that you use the same key as you used to encrypt
var eKey = "yourkey";

// Encrypt with your own key (for higher security)
var eString = plugins.it2be_cryptor.DESencrypt("string to be encrypted", eKey);

// Decrypt with your own (previously used) key
application.output(eString +" = " + plugins.it2be_cryptor.DESdecrypt(eString, eKey));


DESdecrypt
String  DESdecrypt( String )
Return a decrypted string that was previously DES encrypted.
Parameters
String  value  the value

Returns
String  decrypted String

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Encrypt and decrypt using DES encryption on a string

// Encrypt without a key (the standard key will be used)
var eString = plugins.it2be_cryptor.DESencrypt("string to be encrypted");

// Decrypt without a key (standard key will be used)
application.output(eString +" = " + plugins.it2be_cryptor.DESdecrypt(eString));


// Make sure that you use the same key as you used to encrypt
var eKey = "yourkey";

// Encrypt with your own key (for higher security)
var eString = plugins.it2be_cryptor.DESencrypt("string to be encrypted", eKey);

// Decrypt with your own (previously used) key
application.output(eString +" = " + plugins.it2be_cryptor.DESdecrypt(eString, eKey));


DESencrypt
String  DESencrypt( String, String )
Return a decrypted string that was previously DES encrypted.
Parameters
String  value  the value
String  key  the key

Returns
String  decrypted String

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Encrypt and decrypt using DES encryption on a string

// Encrypt without a key (the standard key will be used)
var eString = plugins.it2be_cryptor.DESencrypt("string to be encrypted");

// Decrypt without a key (standard key will be used)
application.output(eString +" = " + plugins.it2be_cryptor.DESdecrypt(eString));


// Make sure that you use the same key as you used to encrypt
var eKey = "yourkey";

// Encrypt with your own key (for higher security)
var eString = plugins.it2be_cryptor.DESencrypt("string to be encrypted", eKey);

// Decrypt with your own (previously used) key
application.output(eString +" = " + plugins.it2be_cryptor.DESdecrypt(eString, eKey));


DESencrypt
String  DESencrypt( String )
Return a decrypted string that was previously DES encrypted.
Parameters
String  value  the value

Returns
String  decrypted String

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Encrypt and decrypt using DES encryption on a string

// Encrypt without a key (the standard key will be used)
var eString = plugins.it2be_cryptor.DESencrypt("string to be encrypted");

// Decrypt without a key (standard key will be used)
application.output(eString +" = " + plugins.it2be_cryptor.DESdecrypt(eString));


// Make sure that you use the same key as you used to encrypt
var eKey = "yourkey";

// Encrypt with your own key (for higher security)
var eString = plugins.it2be_cryptor.DESencrypt("string to be encrypted", eKey);

// Decrypt with your own (previously used) key
application.output(eString +" = " + plugins.it2be_cryptor.DESdecrypt(eString, eKey));


MD5
String  MD5( String )
TODO create description
Parameters
String  value  the value

Returns
String  hash String

Supported Clients
SmartClient, WebClient, NGClient


MD5
String  MD5( byte[] )
TODO create description
Parameters
byte[]  value  the value

Returns
String  hash String

Supported Clients
SmartClient, WebClient, NGClient


MD5equals
Boolean  MD5equals( String, String )
Check the given string or (array of) bytes against the hash code.
Parameters
String  value  the value
String  hash  the hash

Returns
Boolean  equals boolean

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Check the given string or (array of) bytes against the hash code.
var computedHash = plugins.it2be_cryptor.Md5(plugins.http.getMediaData('media:///yourimage.gif'));

application.output(computedHash);
application.output(plugins.it2be_cryptor.Md5equals(plugins.http.getMediaData('media:///yourimage.gif'), computedHash));

var computedHash = plugins.it2be_cryptor.Md5('string to calculate');

application.output(computedHash);
application.output(plugins.it2be_cryptor.MD5equals('string to calculate', computedHash));


MD5equals
Boolean  MD5equals( byte[], String )
TODO create description
Parameters
byte[]  value  the value
String  hash  the hash

Returns
Boolean  equals boolean

Supported Clients
SmartClient, WebClient, NGClient


SHA
String  SHA( byte[] )
TODO create description
Parameters
byte[]  value  the value

Returns
String  hash String

Supported Clients
SmartClient, WebClient, NGClient


SHA
String  SHA( String )
Return the computed hash (string) of the given string or (array of bytes).
Parameters
String  value  the value

Returns
String  hash String

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Return the computed hash (string) of the given string or (array of bytes).
var computedHash = plugins.it2be_cryptor.SHA(plugins.http.getMediaData('media:///yourimage.gif'));

application.output(computedHash);
application.output(plugins.it2be_cryptor.SHAequals(plugins.http.getMediaData('media:///yourimage.gif'), computedHash));

var computedHash = plugins.it2be_cryptor.SHA('string to calculate');

application.output(computedHash);
application.output(plugins.it2be_cryptor.SHAequals('string to calculate', computedHash));


SHAequals
Boolean  SHAequals( String, String )
Check the given string or (array of) bytes against the hash code.
Parameters
String  value  the value
String  hash  the hash

Returns
Boolean  equals boolean

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Check the given string or (array of) bytes against the hash code.
var computedHash = plugins.it2be_cryptor.SHA(plugins.http.getMediaData('media:///yourimage.gif'));

application.output(computedHash);
application.output(plugins.it2be_cryptor.SHAequals(plugins.http.getMediaData('media:///yourimage.gif'), computedHash));

var computedHash = plugins.it2be_cryptor.SHA('string to calculate');

application.output(computedHash);
application.output(plugins.it2be_cryptor.SHAequals('string to calculate', computedHash));


SHAequals
Boolean  SHAequals( byte[], String )
Check the given string or (array of) bytes against the hash code.
Parameters
byte[]  value  the value
String  hash  the hash

Returns
Boolean  equals boolean

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Check the given string or (array of) bytes against the hash code.
var computedHash = plugins.it2be_cryptor.SHA(plugins.http.getMediaData('media:///yourimage.gif'));

application.output(computedHash);
application.output(plugins.it2be_cryptor.SHAequals(plugins.http.getMediaData('media:///yourimage.gif'), computedHash));

var computedHash = plugins.it2be_cryptor.SHA('string to calculate');

application.output(computedHash);
application.output(plugins.it2be_cryptor.SHAequals('string to calculate', computedHash));