{"id":3308,"date":"2020-02-16T18:00:06","date_gmt":"2020-02-16T17:00:06","guid":{"rendered":"http:\/\/van-maanen.com\/?p=3308"},"modified":"2020-02-16T18:00:06","modified_gmt":"2020-02-16T17:00:06","slug":"encrypting-in-python","status":"publish","type":"post","link":"http:\/\/archief.van-maanen.com\/?p=3308","title":{"rendered":"Encrypting in Python"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Encrypting in Python can be very easy. Below, a snippet is provided that allows to encrypt data.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The code can be found <a href=\"http:\/\/van-maanen.com\/wp-content\/uploads\/2020\/02\/Vijf.pyw\">here<\/a> :<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, as the code is simple, it comes at a price:  the\u00a0Vigenere cipher\u00a0is rather insecure. If the key length is equal to the\u00a0cipher\u00a0text length then the\u00a0cipher\u00a0is absolutely\u00a0secure\u00a0if the key is chosen completely randomly and is only used once. This will turn the\u00a0cipher\u00a0into a one time pad. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Encrypting in Python can be very easy. Below, a snippet is provided that allows to encrypt data. The code can be found here : However, as the code is simple, it comes at a price: the\u00a0Vigenere cipher\u00a0is rather insecure. If the key length is equal to the\u00a0cipher\u00a0text length then the\u00a0cipher\u00a0is absolutely\u00a0secure\u00a0if the key is chosen [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-3308","post","type-post","status-publish","format-standard","hentry","category-allgemein"],"_links":{"self":[{"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=\/wp\/v2\/posts\/3308","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3308"}],"version-history":[{"count":0,"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=\/wp\/v2\/posts\/3308\/revisions"}],"wp:attachment":[{"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3308"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3308"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/archief.van-maanen.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}