Esri Geoportal Server
1.0

com.esri.gpt.framework.security.codec
Class PC1_Encryptor

java.lang.Object
  extended by com.esri.gpt.framework.security.codec.PC1_Encryptor

public final class PC1_Encryptor
extends Object

String encryptor.

Based upon PC1 Cipher Algorithm (Pukall Cipher 1) by Alexander PUKALL


Method Summary
static String decrypt(String encryptedString)
          Decrypts a string using the default key.
static String decrypt(String key, String encryptedString)
          Decrypts a string.
static String encrypt(String stringToEncrypt)
          Encrypts a string using the default key.
static String encrypt(String key, String stringToEncrypt)
          Encrypts a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

decrypt

public static String decrypt(String encryptedString)
Decrypts a string using the default key.

Parameters:
encryptedString - the string to decrypt
Returns:
the decrypted string

decrypt

public static String decrypt(String key,
                             String encryptedString)
Decrypts a string.

Parameters:
key - the encryption key
encryptedString - the string to decrypt
Returns:
the decrypted string

encrypt

public static String encrypt(String stringToEncrypt)
Encrypts a string using the default key.

Parameters:
stringToEncrypt - the string to encrypt
Returns:
the encrypted string

encrypt

public static String encrypt(String key,
                             String stringToEncrypt)
Encrypts a string.

Parameters:
key - the encryption key
stringToEncrypt - the string to encrypt
Returns:
the encrypted string

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.