Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/junker/easy-aes
Common Lisp system for OpenSSL compatible AES encryption
https://github.com/junker/easy-aes
aes aes-cbc common-lisp
Last synced: about 1 month ago
JSON representation
Common Lisp system for OpenSSL compatible AES encryption
- Host: GitHub
- URL: https://github.com/junker/easy-aes
- Owner: Junker
- License: mit
- Created: 2023-11-12T05:34:12.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-02-18T05:10:02.000Z (12 months ago)
- Last Synced: 2024-11-08T13:24:19.986Z (3 months ago)
- Topics: aes, aes-cbc, common-lisp
- Language: Common Lisp
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Easy-AES
Perform AES-256 (CBC) encryption/decryption compatible with OpenSSL, CryptoJS,
Gibberish AES and other libraries.## Installation
This system can be installed from [UltraLisp](https://ultralisp.org/) like this:
```lisp
(ql-dist:install-dist "http://dist.ultralisp.org/"
:prompt nil)
(ql:quickload "easy-aes")
```## Usage
**encrypting data:**
```common-lisp
(easy-aes:encrypt some-string "my-password") ; returns encypted base64 string
;; or
(easy-aes:encrypt some-vector "my-password")
;; or
(easy-aes:encrypt some-stream "my-password")
;; or
(easy-aes:encrypt some-string "my-password" :uri t) ; returns encypted base64 string suitable for URL
```**decrypting data:**
```common-lisp
(easy-aes:decrypt b64-string "my-password")
;; or
(easy-aes:decrypt b64-stream "my-password")
;; or
(easy-aes:decrypt b64-url-string "my-password" :uri t)
```**example:**
```common-lisp
(babel:octets-to-string
(easy-aes:decrypt (easy-aes:encrypt "test123" "pass")
"pass"))
;; => "test123"
```