What is the proper way to perform authenticated encryption in Java?

前端 未结 2 1013
一向
一向 2021-02-04 11:17

Authenticated encryption requires that we use some accepted standard for encrypting and authenticating a message. So we both encrypt the message and compute a MAC on the messag

2条回答
  •  天涯浪人
    2021-02-04 11:46

    When transferring files from one server to another through secure ftp, I use private/public key pairs with the private key residing on the "from" server and the public key residing on the "to" server.

    Using private/public key pairs is a secure standard when transferring files.

    I believe it would also be a secure means in the context of a Java application.

    Check out Generating and Verifying Signatures and Generate Public and Private Keys for more details on using a private/public key pair setup for digital signatures in Java.

提交回复
热议问题