{"id":2201,"date":"2012-06-12T15:29:29","date_gmt":"2012-06-12T13:29:29","guid":{"rendered":"http:\/\/blog.unelink.es\/?p=2201"},"modified":"2012-06-12T15:27:53","modified_gmt":"2012-06-12T13:27:53","slug":"encode-y-decode-en-base64-desde-perl","status":"publish","type":"post","link":"https:\/\/hosting.airetech.es\/blog\/wiki\/encode-y-decode-en-base64-desde-perl\/","title":{"rendered":"Encode y decode en Base64 desde Perl"},"content":{"rendered":"<p>Para mayor claridad aqu\u00ed dejo un peque\u00f1o script que hace uso de las funciones encode y decode de perl<\/p>\n<pre>\r\n#!\/usr\/bin\/perl -w\r\n\r\nuse strict;\r\nuse warnings;\r\nuse MIME::Base64;\r\n\r\nmy $no_base64 = 'hola soy una cadena de texto';\r\nmy $si_base64 = encode_base64('hola soy una cadena de texto');\r\n\r\nchomp ($no_base64);\r\nchomp ($si_base64);\r\n\r\nprint \"\\n\\n\";\r\nprint \"cadena no base64: '\". $no_base64 .\"'\\n\";\r\nprint \"cadena si base64: '\". $si_base64 .\"'\\n\";\r\nprint decode_base64($si_base64) .'=='. $no_base64;\r\nprint \"\\n\\n\";\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"Para mayor claridad aqu\u00ed dejo un peque\u00f1o script que hace uso de las funciones encode y decode de perl #!\/usr\/bin\/perl -w use strict; use warnings; use MIME::Base64; my $no_base64 = 'hola soy una cadena de texto'; my $si_base64 = encode_base64('hola soy una cadena de texto'); chomp ($no_base64); chomp ($si_base64); print \"\\n\\n\"; print \"cadena no base64: '\". $no_base64 .\"'\\n\"; print \"cadena&nbsp;<a href=\"https:\/\/hosting.airetech.es\/blog\/wiki\/encode-y-decode-en-base64-desde-perl\/\" class=\"read-more\">Seguir leyendo<\/a>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[137,6],"tags":[139,141,140,138],"class_list":["post-2201","post","type-post","status-publish","format-standard","hentry","category-perl","category-wiki","tag-base64","tag-decode","tag-encode","tag-perl-2","cat-137-id","cat-6-id"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/posts\/2201","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/comments?post=2201"}],"version-history":[{"count":3,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/posts\/2201\/revisions"}],"predecessor-version":[{"id":2313,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/posts\/2201\/revisions\/2313"}],"wp:attachment":[{"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/media?parent=2201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/categories?post=2201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hosting.airetech.es\/blog\/wp-json\/wp\/v2\/tags?post=2201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}