Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use public key decryption? #59

Closed
ProfessionalMe opened this issue Aug 23, 2023 · 1 comment
Closed

How to use public key decryption? #59

ProfessionalMe opened this issue Aug 23, 2023 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@ProfessionalMe
Copy link

No description provided.

@jerson
Copy link
Owner

jerson commented Aug 24, 2023

Hi @ProfessionalMe, currently we only support decryption with privateKey, do you know about another library allowing publicKey(could be in dart or another language), if so I could use as input to take a look how they have implemented

import 'package:fast_rsa/fast_rsa.dart';

var result = await RSA.decryptOAEP(message, label, Hash.HASH_SHA256, privateKey)
var result = await RSA.decryptPKCS1v15(message, privateKey)

var result = await RSA.decryptOAEPBytes(messageBytes, label, Hash.SHA256, privateKey)
var result = await RSA.decryptPKCS1v15Bytes(messageBytes, privateKey)

@jerson jerson added the help wanted Extra attention is needed label Aug 24, 2023
@jerson jerson closed this as completed May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants