What are the differences between oo programming and functional programming? Scott Andrew Alpaugh writes to explain.
Tag: Java
How to encode/decode base64 using Java
In Java, you can use the Base64 class in the java.util package to encode and decode data in Base64. To encode data in Base64, you can use the getEncoder() method to obtain an encoder, and then use the encodeToString() method to perform the encoding: Copy codeimport java.util.Base64; public class Main { public static void main(String[]…
Creating a JWT token in Java
I ran across this problem on a project and I thought I’d share some sample code to get you going. As far as passing the generated jwt you can do it as a header Authorization parameter. A good tool for trying this out is postman which you can download with the link below. In a…