Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Can I decrypt with public key only or without storing passphrase in app #16

@simkessy

Description

@simkessy

Hey I'm a little confused about how I should proceed with my application and using this library:

I have a web application running on a site with a unique ID. The application takes the ID, plays around with it and calls that a challenge_code.

The challenge _code is sent to me (user emails it to me). I encrypt it and call it a license_key. I send that to the application user and he enters the key into the application.

When the app loads, I need to decrypt the key back into the challenge_code and ensure that it matches the challenge_code the application would generate.

I'm not sure what I need to store in the application and what I need to keep on my end of things to ensure that this process works reliably, if at all.

Is it possible to decrypt in the application using only the PublicKey String? I'm trying to avoid storing the passphrase in code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions