Tag Archives: Encryption and decryption

[Solved] Error in porting libzrtp: automake-1.14: command not found

Error:

cd . && /bin/bash /home/disk//libzrtp/src/config/missing automake-1.14 –gnu
/home/disk/libzrtp/src/config/missing: line 81: automake-1.14: command not found
WARNING: ‘automake-1.14’ is missing on your system.
You should only need it if you modified ‘Makefile.am’ or
‘configure.ac’ or m4 files included by ‘configure.ac’.
The ‘automake’ program is part of the GNU Automake package:
http://www.gnu.org/software/automake
It also requires GNU Autoconf, GNU m4 and Perl in order to run:
http://www.gnu.org/software/autoconf
http://www.gnu.org/software/m4/
http://www.perl.org/
make[2]: *** [Makefile.in] Error 1

Principle:
1, the execution of autoscan will generate a configure.scan file, which can be used as a blueprint for the configure.in file.
2. Execute aclocal and autoconf, which will generate aclocal.m4 and configure files respectively.
The specific operations.

./autoscan
./aclocal
./autoconf
automake –add-missing
./configure

[Solved] RSA encryption request error: javax.crypto.badpaddingexception: decryption error

📖 Abstract


Share today — RSA encryption request error: javax. Crypto. Badpaddingexception: decryption error , welcome to pay attention!

Read related articles: spring boot + security based on the separation of the front and back RSA password encryption login process


🌂 resolvent

In the login method, the space can be replaced by a + sign, just ask if you want to be coquettish

String inputDecryptData = "";
        try {
            Object privateKey = redisUtil.get(Constant.RSA_PRIVATE_KEY);

            inputDecryptData =  RSAUtils.decrypt(password.replaceAll(" ","+"), RSAUtils.getPrivateKey(privateKey.toString()));
        } catch (Exception e) {
            log.error("RSA encryption and decryption exceptions occurred ======>", e);
            throw new BizException("RSA encryption and decryption exception occurred");
        }

Finally, thank you for watching patiently, leaving a like collection is your greatest encouragement to me!