Skip to content

musement/msm-crypto

Repository files navigation

[WIP] Isomorphic Musement crypto utils

It supports nodejs too.

usage

npm i https://github.com/musement/msm-crypto.git

API

Currently we provide 2 methods;

/**
 *
 * @param {String} key
 * @param {String} data
 * @param {*} options to be defined, for future needs
 * @returns {Promise<String>}
 */
encrypt(key, data, options = {})
/**
 *
 * @param {Object} key
 * @param {String} data
 * @param {*} options to be defined, for future needs
 * @returns {Promise<String>}
 */
decrypt(key, data, options = {})

[WIP] test

TODO

  • fix tests
  • introduce typescript?

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published