vlucas / pikirasa

PKI public/private RSA key encryption using the OpenSSL extension
BSD 3-Clause "New" or "Revised" License
102 stars 21 forks source link

Adding an interface to the RSA class #18

Open adaniloff opened 3 years ago

adaniloff commented 3 years ago

Hi!

Why not adding an interface to the RSA class ? I'm thinking about using your solution but I'd like having an interface for DI and SOLID purposes...

In fact, i'd like to be able to make an adapter to your class.

Just a suggestion:

interface RSAInterface { /*

class RSA implements RSAInterface { // ... you can keep the same code and even use @inheritDoc to use the interface's annotations }