Package com.pubnub.api.vendor
Class Crypto
- java.lang.Object
-
- com.pubnub.api.vendor.Crypto
-
public class Crypto extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringdecrypt(java.lang.String cipher_text)Decryptjava.lang.Stringencrypt(java.lang.String input)static byte[]hexEncode(byte[] input)static byte[]sha256(byte[] input)Get SHA256
-
-
-
Method Detail
-
hexEncode
public static byte[] hexEncode(byte[] input) throws PubNubException- Throws:
PubNubException
-
encrypt
public java.lang.String encrypt(java.lang.String input) throws PubNubException- Throws:
PubNubException
-
decrypt
public java.lang.String decrypt(java.lang.String cipher_text) throws PubNubExceptionDecrypt- Parameters:
cipher_text-- Returns:
- String
- Throws:
PubNubException
-
sha256
public static byte[] sha256(byte[] input) throws PubNubExceptionGet SHA256- Parameters:
input-- Returns:
- byte[]
- Throws:
PubNubException
-
-