Skip to content

🥨 JQuery ajax data encryption

License

Notifications You must be signed in to change notification settings

attla/joth-jquery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🥨 Joth jquery - Encrypt and decrypt requests and responses data

Why use this?

If you need to transit sensitive data you know leaving it in plaintext is not ideal, so using a layer that makes the data more difficult to capture is essential.

Installation

<script src="https://octhahq.github.io/joth-jquery/joth.min.js"></script>

Usage

Define a secret key

This key is used to encrypt and decrypt the data. It must contain 48 characters.

joth.secret('a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e');

Setting attributes to specific endpoint

joth.to('/auth', 'email', 'password');

joth.to('/user/*', 'email', 'name');

joth.to('/invoice', ['name', 'address']);

Setting global attributes

joth.setAttr('email', 'password');

joth.setAttr(['name', 'address']);

License

This package is licensed under the MIT license © Octha.

About

🥨 JQuery ajax data encryption

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published