Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 351 Bytes

README.md

File metadata and controls

20 lines (17 loc) · 351 Bytes

Introduce

A simple rsa util with unit test coverage 100%.

Main apis

  • genKeys
  • genKeysByHand
  • genPublicKeyByModulusAndComponents
  • genPrivateKeyByModulusAndComponents
  • loadPrivateKeyFromFile
  • loadPublicKeyFromFile
  • encrypt
  • encryptToBase64Str
  • decrypt
  • decryptFromBase64Str
  • sign
  • signToBase64Str
  • verify
  • verifyFromBase64Str