Home > Contents > Index >
Expanded TOC   |    Accordion TOC   |    Annotated TOC   |    Index

 

Utilities.encryptString

Encrypts a string.

This method has two variants:


Utilities.encryptString

Encrypts a string.

Syntax

Parameters

s
The string to encrypt.

Description

The encryptString method encrypts a string. The encryption method uses the DES algorithm and a default key.

Returns

Returns the encrypted string. If encryption is not enabled, it returns the original string.

Example

The following code encrypts the string "Attack at dawn":

See Also

cryptoEnabled , decryptString


Utilities.encryptString

Encrypts a string using an encryption key that you select.

Syntax

Parameters

s
Input. The string to encrypt.

key
A byte array containing byte values that represent the key used by the encryption algorithm. The array should be at least 8 bytes long.

Returns

Returns the encrypted string. If encryption is not enabled, it returns the original string.

See Also

cryptoEnabled , decryptString

 

  Home > Contents > Index >

FatWire JAVA Reference
Copyright 2005 by FatWire Software
All rights reserved.