Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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)

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
```javascript

crypsi.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