Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Dec 5, 2023
1 parent 6e74549 commit 6f9c87e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/java/crypto/KeyStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import java.security.NoSuchAlgorithmException;

public interface KeyStore {

String encryptAndEncode(String secret) ;

String decodeAndDecrypt(String encodedEncryptedSecret) ;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/crypto/RSAKeyStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
*/
public class RSAKeyStore implements KeyStore {

private final Pattern base64Pattern = Pattern.compile("(([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?){1}");

private final PublicKey publicKey;
private final PrivateKey privateKey;
private final Pattern base64Pattern = Pattern.compile("(([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?){1}");

/**
* Use this constructor for local development / testing where it does not matter which keypair encrypts and
Expand Down

0 comments on commit 6f9c87e

Please sign in to comment.