$ npm i crypsi.js
import { digest } from 'crypsi.js';
const handleSubmit = async (e) => {
console.log(await digest.sha256('wuriyanto')); // 7da544fa170151239b9886c0c905736fe3e8b07e68aefaba0633272aee47af87
};
Please adjust the version @0.0.0
based on https://github.com/telkomdev/crypsi.js/releases
<head>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/crypsi.min.js"></script>
</head>
Now crypsi
will be available in the global object
<script>
crypsi.digest.sha256('wuriyanto').then(function(res) {
console.log(res); // 7da544fa170151239b9886c0c905736fe3e8b07e68aefaba0633272aee47af87
});
</script>
- 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
- 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