{"id":4478,"date":"2020-04-01T10:28:30","date_gmt":"2020-04-01T08:28:30","guid":{"rendered":"http:\/\/www.laurentmarot.fr\/wordpress\/?p=4478"},"modified":"2020-05-04T09:27:52","modified_gmt":"2020-05-04T07:27:52","slug":"rsa-encryption-and-decryption-in-java","status":"publish","type":"post","link":"https:\/\/www.laurentmarot.fr\/wordpress\/?p=4478","title":{"rendered":"RSA encryption and decryption in Java"},"content":{"rendered":"<p>A few basics about RSA (<a href=\"https:\/\/fr.wikipedia.org\/wiki\/Ronald_Rivest\" target=\"_blank\" rel=\"noopener noreferrer\">Rivest<\/a> \u2013 <a href=\"https:\/\/fr.wikipedia.org\/wiki\/Adi_Shamir\" target=\"_blank\" rel=\"noopener noreferrer\">Shamir<\/a> \u2013 <a href=\"https:\/\/fr.wikipedia.org\/wiki\/Leonard_Adleman\" target=\"_blank\" rel=\"noopener noreferrer\">Adleman<\/a>) cryptography encryption and decryption in java. Just for comparison with what we habitually do with <a href=\"http:\/\/www.laurentmarot.fr\/wordpress\/?p=4482\" target=\"_blank\" rel=\"noopener noreferrer\">openSSL<\/a> without understanding any command \ud83d\ude42<\/p>\n<p>Check it <a href=\"https:\/\/www.devglan.com\/online-tools\/rsa-encryption-decryption\" target=\"_blank\" rel=\"noopener noreferrer\">online<\/a>.<\/p>\n<p>Reminder : RSA is an Asymmetric encryption technique that uses two different keys as public and private keys to perform the encryption and decryption. With RSA, you can encrypt sensitive information with a public key and a matching private key is used to decrypt the encrypted message. See details on RSA Cryptosystem on <a href=\"https:\/\/en.wikipedia.org\/wiki\/RSA_(cryptosystem)\" target=\"_blank\" rel=\"noopener noreferrer\">Wikipedia<\/a>.<\/p>\n<p>Public and private keys generation using KeyPairGenerator and asymmetric encryption and decryption with these keys.<\/p>\n<p>https:\/\/github.com\/bcgit<\/p>\n<p>https:\/\/github.com\/anishnath\/crypto-tool<\/p>\n<p>https:\/\/github.com\/jaysridhar\/java-stuff<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"BjCn1eWLxl\"><p><a href=\"https:\/\/www.novixys.com\/blog\/how-to-generate-rsa-keys-java\/\">How to Generate RSA Keys in Java<\/a><\/p><\/blockquote>\n<p><iframe title=\"&#8220;How to Generate RSA Keys in Java&#8221; &#8212; Novixys Software Dev Blog\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" src=\"https:\/\/www.novixys.com\/blog\/how-to-generate-rsa-keys-java\/embed\/#?secret=BjCn1eWLxl\" data-secret=\"BjCn1eWLxl\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>A few basics about RSA (Rivest \u2013 Shamir \u2013 Adleman) cryptography encryption and decryption in java. Just for comparison with what we habitually do with openSSL without understanding any command \ud83d\ude42 Check it online. Reminder : RSA is an Asymmetric encryption technique that uses two different keys as public and private keys to perform the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/4478"}],"collection":[{"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4478"}],"version-history":[{"count":6,"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/4478\/revisions"}],"predecessor-version":[{"id":4582,"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/4478\/revisions\/4582"}],"wp:attachment":[{"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4478"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4478"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4478"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}