{"action":"created","issue":{"url":"https://api.github.com/repos/jedisct1/libsodium-php/issues/71","labels_url":"https://api.github.com/repos/jedisct1/libsodium-php/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/jedisct1/libsodium-php/issues/71/comments","events_url":"https://api.github.com/repos/jedisct1/libsodium-php/issues/71/events","html_url":"https://github.com/jedisct1/libsodium-php/issues/71","id":123304032,"number":71,"title":"Automatically append padding?","user":{"login":"rugk","id":11966684,"avatar_url":"https://avatars.githubusercontent.com/u/11966684?v=3","gravatar_id":"","url":"https://api.github.com/users/rugk","html_url":"https://github.com/rugk","followers_url":"https://api.github.com/users/rugk/followers","following_url":"https://api.github.com/users/rugk/following{/other_user}","gists_url":"https://api.github.com/users/rugk/gists{/gist_id}","starred_url":"https://api.github.com/users/rugk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rugk/subscriptions","organizations_url":"https://api.github.com/users/rugk/orgs","repos_url":"https://api.github.com/users/rugk/repos","events_url":"https://api.github.com/users/rugk/events{/privacy}","received_events_url":"https://api.github.com/users/rugk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-12-21T15:55:33Z","updated_at":"2015-12-21T22:27:52Z","closed_at":"2015-12-21T20:41:32Z","body":"Similar to https://github.com/jedisct1/libsodium-php/issues/33 why not automatically append padding?\r\n~~Currently the dev still has to do it by himself creating potential vulnerabilities if it is wrong.~~\r\n\r\nIs there even a special function of libsodium only for appending padding or something like this?"},"comment":{"url":"https://api.github.com/repos/jedisct1/libsodium-php/issues/comments/166440903","html_url":"https://github.com/jedisct1/libsodium-php/issues/71#issuecomment-166440903","issue_url":"https://api.github.com/repos/jedisct1/libsodium-php/issues/71","id":166440903,"user":{"login":"jedisct1","id":124872,"avatar_url":"https://avatars.githubusercontent.com/u/124872?v=3","gravatar_id":"","url":"https://api.github.com/users/jedisct1","html_url":"https://github.com/jedisct1","followers_url":"https://api.github.com/users/jedisct1/followers","following_url":"https://api.github.com/users/jedisct1/following{/other_user}","gists_url":"https://api.github.com/users/jedisct1/gists{/gist_id}","starred_url":"https://api.github.com/users/jedisct1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jedisct1/subscriptions","organizations_url":"https://api.github.com/users/jedisct1/orgs","repos_url":"https://api.github.com/users/jedisct1/repos","events_url":"https://api.github.com/users/jedisct1/events{/privacy}","received_events_url":"https://api.github.com/users/jedisct1/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T22:27:52Z","updated_at":"2015-12-21T22:27:52Z","body":"1) Make sure the message includes its own size.\r\n\r\nIf it's raw binary, prepend the size. Keep things simple."}}