Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/telkomdev/crypsi.js
Crypto utilities for ReactJs and Web Browsers (Digest, AES, HMAC, RSA, RSA Digital Signature)
https://github.com/telkomdev/crypsi.js
encryption hashing reactjs rsa webcrypto
Last synced: about 5 hours ago
JSON representation
Crypto utilities for ReactJs and Web Browsers (Digest, AES, HMAC, RSA, RSA Digital Signature)
- Host: GitHub
- URL: https://github.com/telkomdev/crypsi.js
- Owner: telkomdev
- License: mit
- Created: 2023-01-12T06:44:37.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-01-22T07:53:27.000Z (almost 2 years ago)
- Last Synced: 2023-03-04T15:52:48.716Z (over 1 year ago)
- Topics: encryption, hashing, reactjs, rsa, webcrypto
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/crypsi.js
- Size: 83 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## CrypsiJs (Crypto utilities for React and Web Browsers)
#
[![](https://data.jsdelivr.com/v1/package/npm/crypsi.js/badge)](https://www.jsdelivr.com/package/npm/crypsi.js)
[![CrypsiJs CI](https://github.com/telkomdev/crypsi.js/actions/workflows/ci.yml/badge.svg)](https://github.com/telkomdev/crypsi.js/actions/workflows/ci.yml)### Install
```shell
$ npm i crypsi.js
```### Usage Reactjs
```javascript
import { digest } from 'crypsi.js';const handleSubmit = async (e) => {
console.log(await digest.sha256('wuriyanto')); // 7da544fa170151239b9886c0c905736fe3e8b07e68aefaba0633272aee47af87
};
```### Usage Browser globals
Please adjust the version `@0.0.0` based on https://github.com/telkomdev/crypsi.js/releases```html
```
Now `crypsi` will be available in the global object
```javascriptcrypsi.digest.sha256('wuriyanto').then(function(res) {
console.log(res); // 7da544fa170151239b9886c0c905736fe3e8b07e68aefaba0633272aee47af87
});```
### CrypsiJs is compatible with each other with the following `server side` libraries
- Golang https://github.com/telkomdev/go-crypsi
- Python https://github.com/telkomdev/pycrypsi
- NodeJs https://github.com/telkomdev/crypsi
- C# (.NET) https://github.com/telkomdev/NetCrypsi
- Java/JVM https://github.com/telkomdev/jcrypsi### Features
- Asymmetric encryption with RSA
- Generate RSA private and public key
- Digital Signature with RSA private and public key using PSS
- Symmetric encryption with AES
- Message authentication code with HMAC
- Generate Hash with Common DIGEST Algorithm