zsqk / deno-fn

some functions for deno and browser
https://jsr.io/@zsqk/somefn
MIT License
2 stars 1 forks source link

feat: import cert pem file, encrypt and verify #65

Open iugo opened 6 months ago

iugo commented 6 months ago

有一些常见的场景:

  1. 获取到一个证书.
  2. 使用证书中的公钥进行加密.
  3. 使用证书中的公钥进行验签.

现在需要写一些代码实现上述常见场景.

There are some common scenarios:

  1. Obtain a certificate.
  2. Encrypt the certificate using the public key.
  3. Use the public key in the certificate for signature verification.

Now we need to write some code to realize the above common scenarios.