项目作者: MustafaHi

项目描述 :
Sciter binding for Botan crypto library
高级语言: C++
项目地址: git://github.com/MustafaHi/Sciter-Botan.git
创建时间: 2021-02-04T02:16:20Z
项目社区:https://github.com/MustafaHi/Sciter-Botan

开源协议:BSD 2-Clause "Simplified" License

下载


Sciter-Botan

Sciter binding for Botan cryptography library

Version : 2.0
API / Usage Guide
Setup Guide
Change Log & Features
Dev Guide
More information in the wiki

Provide easy to use API for Botan to Sciter’s script

  1. var key = Botan.hash("SHA-256", "secret");
  2. var data = "will be secret";
  3. const crypto = await Botan.cipher("AES-256/CBC", data, key);
  4. // returns Object with Data and IV(nonce)
  5. crypto.data
  6. // hex code of the encrypted data
  7. crypto.iv
  8. // IV(nonce) used for encryption

And to decrypt that data

  1. const decrypt = await Botan.decipher("AES-256/CBC", crypto.data, key, crypto.iv);
  2. decrypt.data
  3. // String "will be secret"

More examples and the entire API in the wiki