@sheetbase/jsrsasign-serverdeprecated

Jsrsasign for Google apps script.

Usage no npm install needed!

<script type="module">
  import sheetbaseJsrsasignServer from 'https://cdn.skypack.dev/@sheetbase/jsrsasign-server';
</script>

README

Sheetbase Module: @sheetbase/jsrsasign-server

Jsrsasign for Google apps script.

License clasp Support me on Patreon PayPal Ask me anything

Install

  • Using npm: npm install --save @sheetbase/jsrsasign-server

  • As a library: 1vWIxUEbidGO8Jl3tMoofvecwBdQmqMdHpa-zFeR653aFt1VQMbzKzaMV

    Set the Indentifier to Jsrsasign and select the lastest version, view code.

Examples

function example1(): void {
  const base64: string = Jsrsasign.utf8tob64("hello");
  Logger.log(base64);
}

function example2(): void {
  const md5: string = Jsrsasign.KJUR.crypto.Util.md5("hello");
  Logger.log(md5);
}

function example3(): void {
  // sign HS256 signature with password "aaa" implicitly handled as string
  const sJWS = Jsrsasign.KJUR.jws.JWS.sign(
    null,
    { alg: "HS256", cty: "JWT" },
    { age: 21 },
    "aaa"
  );
  Logger.log(sJWS);
}

Documentation

Homepage: http://kjur.github.io/jsrsasign/

License

@sheetbase/jsrsasign-server is released under the MIT license.