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

 

Utilities.decryptString

Decrypts a string.

This method has two variants:


Utilities.decryptString

Decrypts a string with the default key using the DES algorithm.

Syntax

Parameters

s
The string to decrypt.

Returns

Returns the decrypted string.

Example

See Also

cryptoEnabled , encryptString


Utilities.decryptString

Decrypts a string with the key you used in encryptString (Variant 2) .

Syntax

Parameters

s
The string to decrypt.

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

Returns

Returns the decrypted string.

See Also

cryptoEnabled , encryptString

 

   Home > Contents > Index >

Oracle JAVA Reference
Copyright (c) 2013, 2016 Oracle and/or its affiliates. All rights reserved.