Skip to content

jerson/node-native-rsa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

native-rsa

import NativeRSA from 'native-rsa'

 const decrypted = await NativeRSA.decryptOAEP(
    message: string,
    label: string,
    hashName: RSAHash,
    pkcs12: string,
    passphrase: string
  ): Promise<string>
 const verified =  await NativeRSA.verifyPSS(
    signature: string,
    message: string,
    hashName: RSAHash,
    pkcs12: string,
    passphrase: string
  ): Promise<boolean>