玉山科技 AsiaPeak  
 


中文首頁
最新消息

解決方案

產品

檔案傳輸管理(MFT)

檔案加密傳輸服務

檔案傳輸管理員

檔案傳輸代理服務

跨平台SFTP/FTPS指令API

高速檔案傳輸

硬體加密模組(HSM)

網路型 HSM

單機型(PCIe卡) HSM

USB介面 HSM

OpenPGP加密

PGP加密指令集與API

PGP for Java API

PGP加密原理

電子時戳

資源

連絡我們

English Version

免費AES加密工具(API)下載


簡介

AES (Advanced Encryption System)是目前安全且運算效能相對快速的對稱式演算法.

(WikiPedia) In cryptography, the Advanced Encryption Standard (AES), also known as Rijndael, is a block cipher adopted as an encryption standard by the U.S. government. It is expected to be used worldwide and analysed extensively, as was the case with its predecessor, the Data Encryption Standard (DES). AES was announced by National Institute of Standards and Technology (NIST) as U.S. FIPS PUB 197 (FIPS 197) in November 26, 2001 after a 5-year standardization process (see Advanced Encryption Standard process for more details). It became effective as a standard May 26, 2002. As of 2006, AES is one of the most popular algorithms used in symmetric key cryptography.

AES Stored Procedures 用法

1. Installation

(1) Copy aestool.dll, sqlaes.dll to MSSQL Server folder (typically, \Program Files\Microsoft SQL Server\MSSQL\Binn\)

(2) login as DBA privilege
exec sp_addextendedproc 'asiapeak_aes_encrypt', 'sqlaes.dll'
exec sp_addextendedproc 'asiapeak_aes_decrypt', 'sqlaes.dll'

(3) Change execution privilege of these extended stored procedures

2. Usages:

Syntax

asiapeak_aes_encrypt key, indata, outdata
asiapeak_aes_decrypt key, indata, outdata

Arguments

key: input key (16 bytes)

indata: data string which need to be encrypted/decrypted (max 8000 bytes)

outdata: VARCHAR or VARBINARY. Variable to hold the output.

Return Code Values

length of the output data, or -1 for error

Example

declare @key varchar(16)
declare @clear varchar(8000)
declare @cipher varchar(8000)
declare @tmp varchar(8000)
declare @rc int

set @key='12345678abcdef90'
set @clear='123zzzzzzzzzz-----anydata here--xxx789'

exec @rc= asiapeak_aes_encrypt @key, @clear,@cipher output
select @cipher
select @rc

exec asiapeak_aes_decrypt @key, @cipher,@tmp output
select @tmp

 

AESTOOL.DLL API 用法 ( for C/C++/VB)

1. Installation

請將aestool.dll 複製到windows目錄下, 或您應用程式執行或指定的目錄即可

參考各語言 (C/C++/VB/Delphi…)呼叫DLL的方式, 加入適當之函數宣告的引入檔即可 (C與VB請參考範例Source)

2. Usages

Syntax

int ap_aes_encrypt(unsigned char * InData, int inLen, unsigned char * OutData,? unsigned char * UserKey, int KeyLen, unsigned char *icv, int cmode);

int ap_aes_decrypt(unsigned char * InData, int inLen, unsigned char * OutData,? unsigned char * UserKey, int KeyLen, unsigned char *icv, int cmode);

Arguments

InData: input data string to be enctypted/decrypted (input)

inLen: length of the input data string (input)

OutData: data buffer to store the output data string (output)

UserKey: input key data to encrypt/decrypt the data (input)

KeyLen: length of the UserKey (16,24,or 32,? input)

icv: input data string for initial vector (16 bytes, input)

cmode: 0 for ECB mode, 1 for CBC mode (input)

Return Value

Length of output data if succeeded, or negative value if failed


歡迎兆豐金控及原中國國際商銀(ICBC)之企業客戶來電洽詢(02)77294248, 索取30天試用版及詳細SDK文件

全球金融網 Global e-banking 加密檔案工具



玉山科技 版權所有 © Copyright AsiaPeak 2006, All Rights Reserved