Neolithic Psychedelic Mushrooms

    @multi-serializer/rsa
    TypeScript icon, indicating that this package has built-in type declarations

    0.1.0 • Public • Published

    Actions Status Actions Status Actions Status Test Coverage Maintainability Packages npm version

    This library delivers a RSA serializer and deserializer, fit to be used with multi-serializer;

    How to Install

    npm i @multi-serializer/rsa
    

    How to use

    By itself:

    const rsa = new RsaStrategy({ key, type: 'public'});
    const serialized = await rsa.serialize(info); // this result is buffer
    
    const origin = await rsa.deserialize(incomingMessage); // this result is also a buffer
    

    Or adding it in the strategy chain of multi-serializer:

    const serializer = new Serializer(
        new JsonStrategy(),
        new GzipStrategy(),
        new RsaStrategy({ key, type: 'public'}),
        new Base64Strategy(),
    );
    
    const serialized = await serializer.serialize(info);
    
    const origin = await serializer.deserialize(incomingMessage);
    

    License

    Licensed under MIT.

    Keywords

    none

    Install

    npm i @multi-serializer/rsa

    DownloadsWeekly Downloads

    10

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    10.3 kB

    Total Files

    9

    Last publish

    Collaborators

    • pedrosodre
    • danielcarvalho
    • gustavobeavis
    • paulododt
    • fgabrielsilva
    • danielgaleni
    • farenheith
    • jeocoutinho