Posts

How to do PGP encryption in Java?

Image
In order to do PGP encryption, you need the PGP public key file. In this post I will tell how to encrypt data with PGP public key in Java. Dependencies Welcome to the home of the Legion of the Bouncy Castle. A fun place to stay, if you've got some time to kill. bouncycastle.orgHome of open source libraries of the Legion of the Bouncy Castle and their Java cryptography and C# cryptography resources https://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk15on/1.70 The Bouncy Castle Cry  

How to Generate your PGP Key pairs?

Image
Strong recommend PGP Tool - Online PGP Key Generator Encryption Decryption Tool. Notes: All the required options are import to generate the key pairs. Especially the name, email address and passphrase are critical for PGP decryption. "Name <Email address>" will be the user id of the generated PGP private key. You will use it with passphrase to decrypt the encrypted message by PGP public key. I will write another 2 posts to guide how you can encrypt message using PGP public key and decrypt the  

How to get OAuth 2.0 access token with a certificate on the Microsoft identity platform?

Image
if you are familiar with OAuth 2.0, you should know how to make the request to the token endpoint with client id, client secret, scope and grant type. Azure Active Directory (Azure AD) supports two types of authentication for service principals: password-based authentication (app secret) and certificate-based authentication. While app secrets can easily be created in the Azure portal or using a Microsoft API like Microsoft Graph, they're long-lived, and not as secure as certificates. It's there