Skip to content

Method to encrypt value using public key or private key (more flexible createSignature) #41

@hansyulian

Description

@hansyulian

I know this is the package that is aimed to be used for sending the public key to the server. But this time, i just want to use this to encrypt and store many other things.

So i wish we can have the

publicKeyEncryptMessage(payload,publicKey)
privateKeyEncryptMessage(payload,promptMessage)
publicKeyDecryptMessage(encryptedPayload,publicKey)
privateKeyDecryptMessage(encryptedPayload,promptMessage)

since the algorithm to encrypt and decrypt is the same for RSA, then we can just simplify to

processPublicKey(payload,publicKey) 
processPrivateKey(payload, promptMessage) 

and all of them return the value after RSA process.

So we can have a library that use the biometrics for anything we want to make it secure and not only limited to the scenario that the public key must be stored in server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions