semvec/pypi-packages huggingface dataset:
crypto-js-to-py 0.2.2
基于pycryptodomex的二次封装,对CryptoJS的AES和CBC进行了简单的复刻
License: MIT

# 介绍

这是一个crypto-js的Python复刻版,对ECB和CBC进行了简单的复刻

# 安装与导入
```bash
pip install crypto-js-to-py
```
```python
from crypto_py import CryptoPY
```

# 代码示例
* 一个简单的crypto-js移植python的示例代码
  * 这是一段crypto-js的示例代码
      ```js
      const CryptoJS = require("crypto-js")
    
      key = CryptoJS.enc.Utf8.parse("1234567890123456")
      iv = CryptoJS.enc.Utf8.parse("1234567890123456")
      data = "我是帅哥"
    
      encrypt = CryptoJS.AES.encrypt(data,key,{
          "iv": iv,
          "mode":CryptoJS.mode.CBC,
          "padding":CryptoJS.pad.Pkcs7
      }).toString()
    
      console.log(encrypt)
      ```

  * 这是移植到python的代码
      ```python
    
      from crypto_py import CryptoPY as CryptoJS
    
      # 以下操作都相同
      key = CryptoJS.enc.Utf8.parse("1234567890123456")
      iv = CryptoJS.enc.Utf8.parse("1234567890123456")
      data = "我是帅哥"
    
      # 这里的options也可以通过对象的方式传入
      # options = CryptoJS.Options(
      #     iv=iv,
      #     mode=CryptoJS.mode.CBC,
      #     padding=CryptoJS.pad.Pkcs7
      # )
      # encrypt = CryptoJS.AES.encrypt(data,key,options).decode()
    
    
      encrypt = CryptoJS.AES.encrypt(data,key,{
          "iv": iv,
          "mode":CryptoJS.mode.CBC,
          "padding":CryptoJS.pad.Pkcs7
      }).decode()
    
      print(encrypt)

      
      ```

* 同时也支持NoPadding和ciphertext
   * `CryptoPY.pad.NoPadding` <font color="red">暂时未能测试是否无BUG</font>
   * `CryptoPY.AES.encrypt(...).ciphertext.decode()`
   * `CryptoPY.AES.decrypt(...).ciphertext.decode()`
srai-voiceassist 0.1.1
srai-library for voice assistance in any language.
License: MIT
Requires Python: <4.0,>=3.10
Keywords: SRAI, TOOLS

# srai-voiceassist
srai-library for voice assistance in any language.
Uses openai and perplexity together to provide chatgpt with the latest news and current details.
Also significantly reduces halucination on Chatgpt for tricky questions
Fluent in allllll the languages

## Requirements
* windows (audio with linux or mac is a bit of a mess)

Set the following api keys as environment variables
* OPENAI_API_KEY=''
* PERPLEXITY_API_KEY=""

## Installation
pip install srai-voiceassist

## Disclaimer
The code is a bit of a hot mess and the latency can be fairly high during USA office hours

## Usages
just type 'voiceassist' and enjoy