Project

we_whisper

0.0
No commit activity in last 3 years
No release in over 3 years
Wechat(微信) open platform requires requests/messages to be encrypted. This gem wrapps the encryption.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

 Project Readme

Wechat Message Encryption Wrapper

Build Status Coverage Status Gem Version License

微信加密解密技术方案

install gem

gem install 'we_whisper'

or using bundler:
gem 'we_whisper'

Create whisper

whisper = WeWhisper::Whisper.new appid, token, encoding_aes_key

Decrypt message

whisper.decrypt_message(encrypted_message, nonce, timestamp)

Encrypt message

whisper.encrypt_message(message, nonce, timestamp)