public class JCEncryptUtil
extends java.lang.Object
Constructor and Description |
---|
JCEncryptUtil(byte[] salt,
java.lang.String encoding) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
decrypt(java.lang.String str) |
java.lang.String |
encrypt(java.lang.String str) |
java.lang.String |
URLSafeDecrypt(java.lang.String str)
base65 encoding has a few characters that are invalid for urls
if the string you want to decode was encoded using URLSafeEncrypt,
then use this function to decrypt.
|
java.lang.String |
URLSafeEncrypt(java.lang.String str)
base64 encoding has a few characters that are invalid for urls
so use this function to encode a url safe string.
|
public java.lang.String encrypt(java.lang.String str)
public java.lang.String decrypt(java.lang.String str)
public java.lang.String URLSafeEncrypt(java.lang.String str)
str
- public java.lang.String URLSafeDecrypt(java.lang.String str)
str
-