|
MDi JLib 1.7.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.microdeveloper.security.encryption.Base64Encrypter
public class Base64Encrypter
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.
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 |
---|
com.microdeveloper.security.encryption.Base64Encrypter.Wrapper w
Constructor Detail |
---|
public Base64Encrypter(SecretKey key)
key
- SecretKey object (usually saved and loaded externally)Method Detail |
---|
public String encrypt(String str)
str
- clear text to encrypt
public String decrypt(String str)
str
- encrypted String to decrypt
|
MDi JLib 1.7.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |