Class Des3

  • All Implemented Interfaces:
    ICrypto

    public class Des3
    extends java.lang.Object
    implements ICrypto
    The Class DES3.
    • Constructor Detail

      • Des3

        public Des3​(byte[] src)
      • Des3

        public Des3​(java.lang.String key,
                    ICrypto c)
      • Des3

        public Des3​(java.lang.String key,
                    byte[] iv,
                    ICrypto c)
    • Method Detail

      • createDes3Key

        public static java.lang.String createDes3Key()
                                              throws java.security.NoSuchAlgorithmException
        Gen key.
        Throws:
        java.security.NoSuchAlgorithmException
      • encode

        public byte[] encode()
        Description copied from interface: ICrypto
        encode
        Specified by:
        encode in interface ICrypto
        Returns:
      • decode

        public byte[] decode()
        Description copied from interface: ICrypto
        decode
        Specified by:
        decode in interface ICrypto
        Returns:
      • getData

        public byte[] getData()
        Description copied from interface: ICrypto
        get data
        Specified by:
        getData in interface ICrypto
        Returns:
      • setData

        public ICrypto setData​(byte[] src)
        Description copied from interface: ICrypto
        set data
        Specified by:
        setData in interface ICrypto