Table of contents
Start for free
Andrew Milich / 6.06.2023Home / news
skiff-crypto is open-source and MIT licensed
Our cryptography libraries are open-source, MIT licensed, and available online.We are thrilled to announce that - Skiff’s cryptography library for symmetric encryption, asymmetric encryption, and object versioning - is now open source and MIT licensed!Visit the NPM package here.From powering end-to-end encryption to managing object structure and versioning, provides a simple and powerful interface for performing cryptography in JavaScript/TypeScript, both in Node.JS and in the browser.The library is published with full TypeScript types, an interface for generating public/private keypairs, and convenient functions for encrypting and decrypting strings.Please note that the example code above is a very simple demonstration of how works and what it can do. For a deeper understanding of the library, its full capabilities, and best practices, we recommend that you delve into the documentation.We're excited to see what you'll build with ! We welcome your contributions and feedback. Together, let's continue to build more powerful, intuitive, and accessible applications.Happy coding!
Installation
library can be installed easily via both yarn and npm.For yarn users, install with:For npm users, install with:NPM link here and GitHub link here.Example code
Below is a simple demonstration of how to use the Skiff-Crypto library.const skiffCrypto = require('@skiff-org/skiff-crypto');
const plaintext = "Hello, skiff-crypto!";
const keypair = skiffCrypto.generatePublicPrivateKeyPair();
const encrypted = skiffCrypto.stringEncryptAsymmetric(keypair.privateKey, { key: keypair.publicKey }, plaintext);
const decrypted = skiffCrypto.stringDecryptAsymmetric(keypair.privateKey, { key: keypair.publicKey }, encrypted);
console.log('Plaintext:', plaintext);
console.log('Ciphertext:', encrypted);
console.log('Expected to be true:', plaintext === decrypted);
Questions, comments, or feedback
Write to us at [email protected] with any questions, comments, or feedback. You can also post a GitHub issue or contact us on Twitter, Reddit, or Discord.Related articles
Andrew MilichThe future of Zcash, Monero, and private cryptoHow can you use crypto privately? A guide to Zcash, Monero, and other privacy coins and projects.
Andrew MilichHow can you do cryptography in Javascript?Almost every web application likely touches some type of encryption - whether it’s AES encryption in SSL or application level security. How can you do cryptography in JavaScript?
Andrew MilichWhat is encrypted search?Searching over encrypted data is a unique challenge. What algorithms make it possible?
Skiff TeamSkiff in the WSJ on encryptionThe Skiff Team published an opinion article in The Wall Street Journal advocating against worldwide encryption proposals.
Andrew MilichBlock trackers and remote content on Skiff MailStarting today, all Skiff Mail users on every plan can disable remote content loading by default in their inbox.
Andrew MilichHow do encryption and decryption work in Javascript?Javascript powers every modern web application. How can secure web apps perform encryption and decryption?
Jason GinsbergWhat is end-to-end encryption, and is it secure?End-to-end encryption has become an absolute necessity for messaging and communication today. How does it work?
Skiff TeamSkiff named top 25 app of 2022Skiff is thrilled to be one of the top 25 new apps of 2022!