AesEncryption

com.anywherecommerce.android.sdk.util

Class AesEncryption

  • java.lang.Object

  • com.anywherecommerce.android.sdk.util.AesEncryption

  • All Implemented Interfaces:java.io.Serializable-

    public class <span class="typeNameLabel">AesEncryption</span>
    extends java.lang.Object
    implements java.io.Serializable
    

    See Also:Serialized Form

Constructor Summary

  Constructor and Description`<span class="memberNameLink">

AesEncryption()`

Method Summary

  Modifier and TypeMethod and Description`java.lang.String``<span class="memberNameLink">

decrypt(java.lang.String encryptedString) java.lang.String``

encrypt(java.lang.String unencryptedString) static java.lang.String``

fromHex(java.lang.String hex) static byte[]``

toByte(java.lang.String hexString) static java.lang.String``

toHex(byte[] buf) static java.lang.String``

toHex(java.lang.String txt)`

Methods inherited from class java.lang.Object

        `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

AesEncryption

        `public AesEncryption()`

Method Detail

encrypt

        ```
        public java.lang.String encrypt(java.lang.String unencryptedString)
                                 throws java.lang.Exception
        ```
        Throws:`java.lang.Exception`

decrypt

        ```
        public java.lang.String decrypt(java.lang.String encryptedString)
                                 throws java.lang.Exception
        ```
        Throws:`java.lang.Exception`

toHex

        `public static java.lang.String toHex(java.lang.String txt)`

fromHex

        `public static java.lang.String fromHex(java.lang.String hex)`

toByte

        `public static byte[] toByte(java.lang.String hexString)`

toHex

        `public static java.lang.String toHex(byte[] buf)`