To make a bar code for payment

I took a look at the payment bar codes of Alipay and Wechat. They are both in the format of 4-4-4-6 (the first two bits remain unchanged) and can be generated offline. They should be time-stamped and then encrypted. Is there any algorithm for writing encryption and decryption with java?

Mar.12,2021
Menu