public class

StringCrypto

extends Object
java.lang.Object
   ↳ com.htc.encrypt.StringCrypto

Class Overview

Usage:

 String encryptText = StringCrypto.encrypt(password, plainText)
 String plainText = SimpleCrypto.decrypt(password, encryptText)
 

Summary

Protected Constructors
StringCrypto(String password)
Public Methods
static String convertFileToString(String path)
String decrypt(String encryptText)
String encrypt(String plainText)
static StringCrypto newInstance(String password)
static byte[] toByte(String hexString)
static String toHex(byte[] bytes)
[Expand]
Inherited Methods
From class java.lang.Object

Protected Constructors

protected StringCrypto (String password)

Public Methods

public static String convertFileToString (String path)

Throws
IOException

public String decrypt (String encryptText)

public String encrypt (String plainText)

public static StringCrypto newInstance (String password)

public static byte[] toByte (String hexString)

public static String toHex (byte[] bytes)