DELIMITER $$

CREATE FUNCTION ECL_ENCRYPT(PIN_JNO varchar(256)) RETURNS varchar(4000)
BEGIN
  RETURN TO_BASE64(HEX(AES_ENCRYPT(PIN_JNO,'Copyright(c)2015-xit.co.kr')));
END $$

DELIMITER ;