Re: I-app Encryption Library
–=_11c05df9f607df2a3a39d81152199b98
Content-Type: multipart/alternative;
boundary=”=_b5fdff038fcd913de5ccb7aaea131caf”
–=_b5fdff038fcd913de5ccb7aaea131caf
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=UTF-8
เรียนทีมงาน
พอดีผมไม่ทราบว่า Error จะมีอะไรบ้างเนื่องจาก Environment
ผมเป็นตัวล่าสุดทั้งหมด
ตอนนี้ปรับแก้ไขในส่วนของ Compilation กับ Install JREs ให้เป็น ตัว 1.7
รวมกับที่แก้ไปรอบแรกคือใช้ Environment ของ Java SE 1.7 แทน 1.8
การใช้งานยังยึดแบบเดิม ตัดส่วนที่ติดปัญหา Sha-1() Hash function
ทิ้งไปเลยครับ
ใส่มาแค่ String CipherText
=iapppdfencrypt._enryptSmartClickCBC_(“test12345”,key);
ถ้าพบ Exception เพิ่มเติมรบกวนส่งมาทางอีเมลล์อีกนะครับ
ผมไม่สามารถเทสให้พบ Exception พวกนั้นได้เพราะผมใช้เวอร์ชั่นล่าสุดทั้งหมด
มาร์ช,
Smartclick
On 2015-03-23 15:09, thanasak.h@kasikornsecurities.com wrote:
> เรียนคุณ Kasama
>
> ไม่สามารถ Run JAR ได้ครับ ติด Error ดังรูปที่1 รบกวน Compile JAR เป็น Version 1.7 ดังรูปที่2 ครับ
>
> Best Regards,
>
> Thanasak Harisombut (Nueng)
> IT Strategic Planning and Development Department
>
> Tel: +662-696-0717
> Mobile: +6686-363-8251
> Email: thanasak.h@kasikornsecurities.com
>
> From: kasama@smartclick.co.th
> To: thanasak.h@kasikornsecurities.com,
> Cc: boripach@smartclick.co.th, yod@yod.net
> Date: 03/23/2015 12:18 PM
> Subject: I-app Encryption Library
>
> ————————-
>
> เรียนทีมงาน
>
> ปรับ JavaSE version 1.7 ให้แล้วนะครับ
>
> ตัวอย่างวิธีการเรียกใช้งาน
>
> IMPORT iapplib.iapppdfencrypt;
>
> PUBLIC CLASS Main {
>
> PUBLIC STATIC VOID main(String[] args) THROWS Exception {
>
> String key = “ksiappksiapp2015”;
>
> String CipherText =iapppdfencrypt._enryptSmartClickCBC_(“test12345448ed7416fce2cb66c285d182b1ba3df1e90016d”,key);
>
> System._OUT_.println(CipherText);
>
> }
> }
>
> Plain text :TEST12345448ed7416fce2cb66c285d182b1ba3df1e90016d
>
> ตัวสีดำคือ ID ที่จะส่ง
> ตัวสีแดงคือ Sha1( ตัวสีดำ )
>
> Return จะได้ออกมาเป็น HexString ที่ใช้ส่งมาทาง URL
>
> https://kinvestmentportal.kasikornsecurities.com/iapp-pdf/ [1]da535f29ceb278d299dfe91e62c2771eba384eac5d8cfa6c30522949f97c9628d35c47becaeedd4d2a6c2f53c23760dc5c33b297b267e073c9ef4ad7edc11a5d
>
> พบปัญหาการใช้งาน Lib หรือติดตรงไหนสอบถามได้ทางอีเมล์นี้ครับ
>
> มาร์ช
> Smartclick
>
> [attachment “EncryptIapp.jar” deleted by Thanasak Harisombut/ID/KSecurities]
Links:
——
[1] https://kinvestmentportal.kasikornsecurities.com/iapp-pdf/
–=_b5fdff038fcd913de5ccb7aaea131caf
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=UTF-8
=E0=B9=80=E0=B8=A3=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B8=97=E0=B8=B5=E0=B8=A1=
=E0=B8=87=E0=B8=B2=E0=B8=99
=E0=B8=9E=E0=B8=AD=E0=B8=94=E0=B8=B5=
=E0=B8=9C=E0=B8=A1=E0=B9=84=E0=B8=A1=E0=B9=88=E0=B8=97=E0=B8=A3=E0=B8=B2=E0=
=B8=9A=E0=B8=A7=E0=B9=88=E0=B8=B2 Error =E0=B8=88=E0=B8=B0=E0=B8=A1=E0=B8=
=B5=E0=B8=AD=E0=B8=B0=E0=B9=84=E0=B8=A3=E0=B8=9A=E0=B9=89=E0=B8=B2=E0=B8=87=
=E0=B9=80=E0=B8=99=E0=B8=B7=E0=B9=88=E0=B8=AD=E0=B8=87=E0=B8=88=E0=B8=B2=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8=B4=E0=B8=
=A1 =E0=B8=95=E0=B8=B1=E0=B8=94=E0=B8=AA=E0=B9=88=E0=B8=A7=E0=B8=99=E0=B8=
=97=E0=B8=B5=E0=B9=88=E0=B8=95=E0=B8=B4=E0=B8=94=E0=B8=9B=E0=B8=B1=E0=B8=8D=
=E0=B8=AB=E0=B8=B2 Sha-1() Hash function =E0=B8=97=E0=B8=B4=E0=B9=89=E0=B8=
=87=E0=B9=84=E0=B8=9B=E0=B9=80=E0=B8=A5=E0=B8=A2=E0=B8=84=E0=B8=A3=E0=B8=B1=
=E0=B8=9A
=E0=B9=83=E0=B8=AA=E0=B9=88=E0=B8=A1=E0=B8=B2=E0=
=B9=81=E0=B8=84=E0=B9=88 String CipherText =3Diapppdfencrypt.enryptSmartClickCBC(“test12345”,key);
=
=E0=B8=96=E0=B9=89=E0=B8=B2=E0=B8=9E=E0=B8=9A Exception =E0=B9=80=E0=
=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1=E0=B9=80=E0=B8=95=E0=B8=B4=E0=B8=A1=E0=B8=
=A3=E0=B8=9A=E0=B8=81=E0=B8=A7=E0=B8=99=E0=B8=AA=E0=B9=88=E0=B8=87=E0=B8=A1=
=E0=B8=B2=E0=B8=97=E0=B8=B2=E0=B8=87=E0=B8=AD=E0=B8=B5=E0=B9=80=E0=B8=A1=E0=
=B8=A5=E0=B8=A5=E0=B9=8C=E0=B8=AD=E0=B8=B5=E0=B8=81=E0=B8=99=E0=B8=B0=E0=B8=
=84=E0=B8=A3=E0=B8=B1=E0=B8=9A
=E0=B8=9C=E0=B8=A1=E0=B9=
=84=E0=B8=A1=E0=B9=88=E0=B8=AA=E0=B8=B2=E0=B8=A1=E0=B8=B2=E0=B8=A3=E0=B8=96=
=E0=B9=80=E0=B8=97=E0=B8=AA=E0=B9=83=E0=B8=AB=E0=B9=89=E0=B8=9E=E0=B8=9A Ex=
ception =E0=B8=9E=E0=B8=A7=E0=B8=81=E0=B8=99=E0=B8=B1=E0=B9=89=E0=B8=99=E0=
=B9=84=E0=B8=94=E0=B9=89=E0=B9=80=E0=B8=9E=E0=B8=A3=E0=B8=B2=E0=B8=B0=E0=B8=
=9C=E0=B8=A1=E0=B9=83=E0=B8=8A=E0=B9=89=E0=B9=80=E0=B8=A7=E0=B8=AD=E0=B8=A3=
=E0=B9=8C=E0=B8=8A=E0=B8=B1=E0=B9=88=E0=B8=99=E0=B8=A5=E0=B9=88=E0=B8=B2=E0=
=B8=AA=E0=B8=B8=E0=B8=94=E0=B8=97=E0=B8=B1=E0=B9=89=E0=B8=87=E0=B8=AB=E0=B8=
=A1=E0=B8=94
=E0=B8=A1=E0=B8=B2=E0=B8=A3=E0=B9=8C=E0=B8=8A,
Smartclick
On 2015-03-23 15:09, thanasak.h@kasikornsecuri=
ties.com wrote:
=
=E0=B9=80=E0=B8=A3=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B8=84=E0=B8=B8=E0=B8=93 Ka=
sama=E0=B9=84=E0=B8=A1=E0=B9=88=E0=B8=AA=
=E0=B8=B2=E0=B8=A1=E0=B8=B2=E0=B8=A3=E0=B8=96 Run JAR =E0=B9=84=E0=B8=94=E0=
=B9=89=E0=B8=84=E0=B8=A3=E0=B8=B1=E0=B8=9A =E0=B8=95=E0=B8=B4=E0=B8=94 Erro=
r =E0=B8=94=E0=B8=B1=E0=B8=87=E0=B8=A3=E0=B8=B9=E0=B8=9B=E0=B8=97=E0=B8=B5=
=E0=B9=881 =E0=B8=A3=E0=B8=9A=E0=B8=81=E0=B8=A7=E0=B8=99 Compile JAR =E0=B9=
=80=E0=B8=9B=E0=B9=87=E0=B8=99 Version 1.7 =E0=B8=94=E0=B8=B1=E0=B8=87=E0=
=B8=A3=E0=B8=B9=E0=B8=9B=E0=B8=97=E0=B8=B5=E0=B9=882 =E0=B8=84=E0=B8=A3=E0=
=B8=B1=E0=B8=9A
Best Regards,
Thanasak Harisombut (Nueng)
IT Strategic =
Planning and Development DepartmentTel: +662-696-0717
Mobile: +6686-363-8=
251
Email: thanasak.h@kasikornsecurities.comFrom: kasama@smartclick.co.th
To: =
thanasak.h@kasikornsecurities.com,
Cc=
: boripach@smartclick.co.th, yod@yod.net
=
Date: 03/23/2015 12:18 PM
Subject:=
I-app Encryption Library
=E0=B9=
=80=E0=B8=A3=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B8=97=E0=B8=B5=E0=B8=A1=E0=B8=87=
=E0=B8=B2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A JavaSE=
version 1.7 =E0=B9=83=E0=B8=AB=E0=B9=89=E0=B9=81=E0=B8=A5=E0=B9=89=E0=B8=
=A7=E0=B8=99=E0=B8=B0=E0=B8=84=E0=B8=A3=E0=B8=B1=E0=B8=9A=E0=
=B8=95=E0=B8=B1=E0=B8=A7=E0=B8=AD=E0=B8=A2=E0=B9=88=E0=B8=B2=E0=B8=87=E0=B8=
=A7=E0=B8=B4=E0=B8=98=E0=B8=B5=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B9=80=E0=B8=A3=
=E0=B8=B5=E0=B8=A2=E0=B8=81=E0=B9=83=E0=B8=8A=E0=B9=89=E0=B8=87=E0=B8=B2=E0=
=B8=99
import iapplib.iapppdfencrypt;
public class Main {
public static void main(String[] args) throws Exception {
String key =3D “=
ksiappksiapp2015”;String CipherTex=
t =3Diapppdfencrypt.enryptSmartClickCBC(“test12345448ed7416fce2cb6=
6c285d182b1ba3df1e90016d”,key);System.out.println(CipherText);
}
}
=Plain text :test12345448ed7416fce2cb66c285d182b1ba3df1e90016d
=
=E0=B8=95=E0=B8=B1=E0=B8=A7=E0=B8=AA=E0=B8=B5=E0=B8=94=E0=B8=B3=E0=B8=84=
=E0=B8=B7=E0=B8=AD ID =E0=B8=97=E0=B8=B5=E0=B9=88=E0=B8=88=E0=B8=B0=E0=B8=
=AA=E0=B9=88=E0=B8=87
=E0=B8=95=E0=B8=B1=E0=B8=A7=E0=
=B8=AA=E0=B8=B5=E0=B9=81=E0=B8=94=E0=B8=87=E0=B8=84=E0=B8=B7=E0=B8=AD Sha1(=
=E0=B8=95=E0=B8=B1=E0=B8=A7=E0=B8=AA=E0=B8=B5=E0=B8=94=E0=B8=B3)Return =E0=B8=88=
=E0=B8=B0=E0=B9=84=E0=B8=94=E0=B9=89=E0=B8=AD=E0=B8=AD=E0=B8=81=E0=B8=A1=E0=
=B8=B2=E0=B9=80=E0=B8=9B=E0=B9=87=E0=B8=99 HexString =E0=B8=97=E0=B8=B5=E0=
=B9=88=E0=B9=83=E0=B8=8A=E0=B9=89=E0=B8=AA=E0=B9=88=E0=B8=87=E0=B8=A1=E0=B8=
=B2=E0=B8=97=E0=B8=B2=E0=B8=87 URL
https://k=
investmentportal.kasikornsecurities.com/iapp-pdf/da535f29ceb278d=
299dfe91e62c2771eba384eac5d8cfa6c30522949f97c9628d35c47becaeedd4d2a6c2f53c2=
3760dc5c33b297b267e073c9ef4ad7edc11a5d
=E0=B8=9E=E0=B8=
=9A=E0=B8=9B=E0=B8=B1=E0=B8=8D=E0=B8=AB=E0=B8=B2=E0=B8=81=E0=B8=B2=E0=B8=A3=
=E0=B9=83=E0=B8=8A=E0=B9=89=E0=B8=87=E0=B8=B2=E0=B8=99 Lib =E0=B8=AB=E0=B8=
=A3=E0=B8=B7=E0=B8=AD=E0=B8=95=E0=B8=B4=E0=B8=94=E0=B8=95=E0=B8=A3=E0=B8=87=
=E0=B9=84=E0=B8=AB=E0=B8=99=E0=B8=AA=E0=B8=AD=E0=B8=9A=E0=B8=96=E0=B8=B2=E0=
=B8=A1=E0=B9=84=E0=B8=94=E0=B9=89=E0=B8=97=E0=B8=B2=E0=B8=87=E0=B8=AD=E0=B8=
=B5=E0=B9=80=E0=B8=A1=E0=B8=A5=E0=B9=8C=E0=B8=99=E0=B8=B5=E0=B9=89=E0=B8=84=
=E0=B8=A3=E0=B8=B1=E0=B8=9A=E0=B8=A1=E0=B8=B2=E0=B8=A3=E0=B9=
=8C=E0=B8=8A
Smartclick[attachmen=
t “EncryptIapp.jar” deleted by Thanasak Harisombut/ID/KSecurities]
–=_b5fdff038fcd913de5ccb7aaea131caf–
–=_11c05df9f607df2a3a39d81152199b98
Content-Transfer-Encoding: base64
Content-Type: application/jar;
name=EncryptIapp.jar
Content-Disposition: attachment;
filename=EncryptIapp.jar;
size=1829
UEsDBBQACAgIAN19d0YAAAAAAAAAAAAAAAAUAAQATUVUQS1JTkYvTUFOSUZFU1QuTUb+ygAA803M
y0xLLS7RDUstKs7Mz7NSMNQz4OXi5QIAUEsHCLJ/Au4bAAAAGQAAAFBLAwQUAAgICADRfHdGAAAA
AAAAAAAAAAAAHAAAAGlhcHBsaWIvaWFwcHBkZmVuY3J5cHQuY2xhc3ONVltXE1cU/k4uJMShhMhF
FAQUMQlgUK6K0pIINSUgbQBL6cXJ5EhGhpl0MqFgrb3Z1t5b2/cun3ytulZglS5/QJ+7Vvtnqt1n
kgUG4mpDMucy39n723t/5xz+ePLbYwD9+NkDB0OjKmezmpqKiDabvsZ1xdzIWh64GPzX5TU5osn6
cuRy6jpXLAZvhq+Pm6a8weBYitEjvsAQSOwCk5ap6sujhDyvaKquWmMMzmCIUK6YkeZe1JDdvtNn
+gcGh4ZHzo5HYxcnJn2oRZ0H/jKXRUsSAjjIcMAyYhnZLLl2BUNLsWowNEhwo8qLJob24b6hs0N8
6Nrw2Uq9/kEf4ZslHMYRYqwY+ho3rUt8fc4oOmLoCu6PI7R/SvhtleCBl6E2oep8Jr+a4uacnNK4
yIWhyNqCbKpiXJqsOm9nwgcnjkloh49CsDJqjuFQonL+KYEHuS56yVXZtGKaqqzEopTwkQok/xdt
Bt/EusKzlmroOQ9CFK/ArEdsf0Ykrml8WdaimqGsJNUbfAfsQTdltwwbldOzcjpNZp9B9TJ02l5V
IzKv5/LZrGFaPD2hK8YeZKTkO5LjSt5UrY3IjJHMK5lxbdmgYWb1GexphuNlvovQ/e77GTrKjcb1
NVlT01N84xnYIENfRdiO81nZlFe5xc2dVV4MM9SPTyQjVILI7F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