MDi JLib
1.7.4

com.microdeveloper.security.encryption
Class Base64Encrypter

java.lang.Object
  extended by com.microdeveloper.security.encryption.Base64Encrypter

public class Base64Encrypter
extends Object

An encrypter that uses Base64 encryption methodology to encrypt text. To use this encrypter you must supply a SecretKey object. Decoding is performed with the UTF8 character set.

Since:
1.1
Version:
1.1
Author:
MicroDeveloper, Inc.
See Also:
DesEncrypter

Field Summary
(package private)  com.microdeveloper.security.encryption.Base64Encrypter.Wrapper w
           
 
Constructor Summary
Base64Encrypter(SecretKey key)
          Creates a new Base64Encrypter
 
Method Summary
 String decrypt(String str)
          Decrypts the given encrypted String
 String encrypt(String str)
          Encrypts the given string returning the encrypted text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

w

com.microdeveloper.security.encryption.Base64Encrypter.Wrapper w
Constructor Detail

Base64Encrypter

public Base64Encrypter(SecretKey key)
Creates a new Base64Encrypter

Parameters:
key - SecretKey object (usually saved and loaded externally)
Method Detail

encrypt

public String encrypt(String str)
Encrypts the given string returning the encrypted text.

Parameters:
str - clear text to encrypt
Returns:
encrypted text

decrypt

public String decrypt(String str)
Decrypts the given encrypted String

Parameters:
str - encrypted String to decrypt
Returns:
decoded String

MDi JLib
1.7.4

Copyright©2001-2007 MicroDeveloper, Inc. All Rights Reserved.