https://github.com/fukata/aes-256-cbc-example
aes-256-cbc encrypt and decrypt examples
https://github.com/fukata/aes-256-cbc-example
Last synced: 3 months ago
JSON representation
aes-256-cbc encrypt and decrypt examples
- Host: GitHub
- URL: https://github.com/fukata/aes-256-cbc-example
- Owner: fukata
- Created: 2012-02-15T07:54:50.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2012-02-15T14:28:24.000Z (about 13 years ago)
- Last Synced: 2025-01-09T21:29:48.099Z (3 months ago)
- Language: Java
- Homepage:
- Size: 116 KB
- Stars: 62
- Watchers: 6
- Forks: 88
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AES-256-CBC Example
Original program is [here](https://gist.github.com/799d6021890f34734470).
This sample, encryption, decryption input and output to the format of the following.
- Encryption
- Input: Raw Text
- Output: Base64
- Decryption
- Input: Base64
- Output: Raw Text*Since you are writing a common key for encryption in the library that you created for each language, when you actually use, please change.*
## Java
String src = "Hello,CryptWorld";
String enc = AESUtil.encrypt(src);
String dec = AESUtil.decrypt(enc);## Node.js
Encrypt = require './encrypt'
src = 'Hello,CryptWorld'
enc = Encrypt.encrypt src
dec = Encrypt.decrypt enc