package com.ai.ced.bluetooth;

/**
 *  神思提供的 加密类，江苏特供，其他省不需要
 */

public class EncrylibInterface {    // Used to load the 'native-lib' library on application startup.
    static {
        System.loadLibrary("JsUnicomEncry");
    }

    public String Id2DataEncry(byte[] Key,String id2Data ){
        try {
            byte[] id2DataBuff = id2Data.getBytes("UTF-8");
            return Id2DataEncryInn(Key,id2DataBuff);
        }catch (Exception e){

        }
        return null;
    }

    private native String Id2DataEncryInn(byte[] Key,byte[] PlainData);

}
