{"action":"created","issue":{"url":"https://api.github.com/repos/defuse/php-encryption/issues/277","repository_url":"https://api.github.com/repos/defuse/php-encryption","labels_url":"https://api.github.com/repos/defuse/php-encryption/issues/277/labels{/name}","comments_url":"https://api.github.com/repos/defuse/php-encryption/issues/277/comments","events_url":"https://api.github.com/repos/defuse/php-encryption/issues/277/events","html_url":"https://github.com/defuse/php-encryption/issues/277","id":163768991,"number":277,"title":"> PHP 5.4 ?","user":{"login":"bsolano","id":11201077,"avatar_url":"https://avatars.githubusercontent.com/u/11201077?v=3","gravatar_id":"","url":"https://api.github.com/users/bsolano","html_url":"https://github.com/bsolano","followers_url":"https://api.github.com/users/bsolano/followers","following_url":"https://api.github.com/users/bsolano/following{/other_user}","gists_url":"https://api.github.com/users/bsolano/gists{/gist_id}","starred_url":"https://api.github.com/users/bsolano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsolano/subscriptions","organizations_url":"https://api.github.com/users/bsolano/orgs","repos_url":"https://api.github.com/users/bsolano/repos","events_url":"https://api.github.com/users/bsolano/events{/privacy}","received_events_url":"https://api.github.com/users/bsolano/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-05T04:15:42Z","updated_at":"2016-07-05T13:27:45Z","closed_at":null,"body":"I am getting Uncaught exception 'Defuse\\Crypto\\Exception\\EnvironmentIsBrokenException' with message 'Cipher method not supported.' with PHP 5.4.44 for Windows (I am stuck with that version).  The main page of the project says that the minimum requirement is PHP 5.4.\r\n\r\nI do not know why PHP 5.4 for Windows on the openssl extension does not have aes-256-ctr.  I guess it is a Windows issue.  Can another cypher method be used?  These are the methods in the Windows version:\r\n\r\narray(110) {\r\n  [0]=>\r\n  string(11) \"AES-128-CBC\"\r\n  [1]=>\r\n  string(11) \"AES-128-CFB\"\r\n  [2]=>\r\n  string(12) \"AES-128-CFB1\"\r\n  [3]=>\r\n  string(12) \"AES-128-CFB8\"\r\n  [4]=>\r\n  string(11) \"AES-128-ECB\"\r\n  [5]=>\r\n  string(11) \"AES-128-OFB\"\r\n  [6]=>\r\n  string(11) \"AES-192-CBC\"\r\n  [7]=>\r\n  string(11) \"AES-192-CFB\"\r\n  [8]=>\r\n  string(12) \"AES-192-CFB1\"\r\n  [9]=>\r\n  string(12) \"AES-192-CFB8\"\r\n  [10]=>\r\n  string(11) \"AES-192-ECB\"\r\n  [11]=>\r\n  string(11) \"AES-192-OFB\"\r\n  [12]=>\r\n  string(11) \"AES-256-CBC\"\r\n  [13]=>\r\n  string(11) \"AES-256-CFB\"\r\n  [14]=>\r\n  string(12) \"AES-256-CFB1\"\r\n  [15]=>\r\n  string(12) \"AES-256-CFB8\"\r\n  [16]=>\r\n  string(11) \"AES-256-ECB\"\r\n  [17]=>\r\n  string(11) \"AES-256-OFB\"\r\n  [18]=>\r\n  string(6) \"BF-CBC\"\r\n  [19]=>\r\n  string(6) \"BF-CFB\"\r\n  [20]=>\r\n  string(6) \"BF-ECB\"\r\n  [21]=>\r\n  string(6) \"BF-OFB\"\r\n  [22]=>\r\n  string(9) \"CAST5-CBC\"\r\n  [23]=>\r\n  string(9) \"CAST5-CFB\"\r\n  [24]=>\r\n  string(9) \"CAST5-ECB\"\r\n  [25]=>\r\n  string(9) \"CAST5-OFB\"\r\n  [26]=>\r\n  string(7) \"DES-CBC\"\r\n  [27]=>\r\n  string(7) \"DES-CFB\"\r\n  [28]=>\r\n  string(8) \"DES-CFB1\"\r\n  [29]=>\r\n  string(8) \"DES-CFB8\"\r\n  [30]=>\r\n  string(7) \"DES-ECB\"\r\n  [31]=>\r\n  string(7) \"DES-EDE\"\r\n  [32]=>\r\n  string(11) \"DES-EDE-CBC\"\r\n  [33]=>\r\n  string(11) \"DES-EDE-CFB\"\r\n  [34]=>\r\n  string(11) \"DES-EDE-OFB\"\r\n  [35]=>\r\n  string(8) \"DES-EDE3\"\r\n  [36]=>\r\n  string(12) \"DES-EDE3-CBC\"\r\n  [37]=>\r\n  string(12) \"DES-EDE3-CFB\"\r\n  [38]=>\r\n  string(13) \"DES-EDE3-CFB1\"\r\n  [39]=>\r\n  string(13) \"DES-EDE3-CFB8\"\r\n  [40]=>\r\n  string(12) \"DES-EDE3-OFB\"\r\n  [41]=>\r\n  string(7) \"DES-OFB\"\r\n  [42]=>\r\n  string(8) \"DESX-CBC\"\r\n  [43]=>\r\n  string(8) \"IDEA-CBC\"\r\n  [44]=>\r\n  string(8) \"IDEA-CFB\"\r\n  [45]=>\r\n  string(8) \"IDEA-ECB\"\r\n  [46]=>\r\n  string(8) \"IDEA-OFB\"\r\n  [47]=>\r\n  string(10) \"RC2-40-CBC\"\r\n  [48]=>\r\n  string(10) \"RC2-64-CBC\"\r\n  [49]=>\r\n  string(7) \"RC2-CBC\"\r\n  [50]=>\r\n  string(7) \"RC2-CFB\"\r\n  [51]=>\r\n  string(7) \"RC2-ECB\"\r\n  [52]=>\r\n  string(7) \"RC2-OFB\"\r\n  [53]=>\r\n  string(3) \"RC4\"\r\n  [54]=>\r\n  string(6) \"RC4-40\"\r\n  [55]=>\r\n  string(11) \"aes-128-cbc\"\r\n  [56]=>\r\n  string(11) \"aes-128-cfb\"\r\n  [57]=>\r\n  string(12) \"aes-128-cfb1\"\r\n  [58]=>\r\n  string(12) \"aes-128-cfb8\"\r\n  [59]=>\r\n  string(11) \"aes-128-ecb\"\r\n  [60]=>\r\n  string(11) \"aes-128-ofb\"\r\n  [61]=>\r\n  string(11) \"aes-192-cbc\"\r\n  [62]=>\r\n  string(11) \"aes-192-cfb\"\r\n  [63]=>\r\n  string(12) \"aes-192-cfb1\"\r\n  [64]=>\r\n  string(12) \"aes-192-cfb8\"\r\n  [65]=>\r\n  string(11) \"aes-192-ecb\"\r\n  [66]=>\r\n  string(11) \"aes-192-ofb\"\r\n  [67]=>\r\n  string(11) \"aes-256-cbc\"\r\n  [68]=>\r\n  string(11) \"aes-256-cfb\"\r\n  [69]=>\r\n  string(12) \"aes-256-cfb1\"\r\n  [70]=>\r\n  string(12) \"aes-256-cfb8\"\r\n  [71]=>\r\n  string(11) \"aes-256-ecb\"\r\n  [72]=>\r\n  string(11) \"aes-256-ofb\"\r\n  [73]=>\r\n  string(6) \"bf-cbc\"\r\n  [74]=>\r\n  string(6) \"bf-cfb\"\r\n  [75]=>\r\n  string(6) \"bf-ecb\"\r\n  [76]=>\r\n  string(6) \"bf-ofb\"\r\n  [77]=>\r\n  string(9) \"cast5-cbc\"\r\n  [78]=>\r\n  string(9) \"cast5-cfb\"\r\n  [79]=>\r\n  string(9) \"cast5-ecb\"\r\n  [80]=>\r\n  string(9) \"cast5-ofb\"\r\n  [81]=>\r\n  string(7) \"des-cbc\"\r\n  [82]=>\r\n  string(7) \"des-cfb\"\r\n  [83]=>\r\n  string(8) \"des-cfb1\"\r\n  [84]=>\r\n  string(8) \"des-cfb8\"\r\n  [85]=>\r\n  string(7) \"des-ecb\"\r\n  [86]=>\r\n  string(7) \"des-ede\"\r\n  [87]=>\r\n  string(11) \"des-ede-cbc\"\r\n  [88]=>\r\n  string(11) \"des-ede-cfb\"\r\n  [89]=>\r\n  string(11) \"des-ede-ofb\"\r\n  [90]=>\r\n  string(8) \"des-ede3\"\r\n  [91]=>\r\n  string(12) \"des-ede3-cbc\"\r\n  [92]=>\r\n  string(12) \"des-ede3-cfb\"\r\n  [93]=>\r\n  string(13) \"des-ede3-cfb1\"\r\n  [94]=>\r\n  string(13) \"des-ede3-cfb8\"\r\n  [95]=>\r\n  string(12) \"des-ede3-ofb\"\r\n  [96]=>\r\n  string(7) \"des-ofb\"\r\n  [97]=>\r\n  string(8) \"desx-cbc\"\r\n  [98]=>\r\n  string(8) \"idea-cbc\"\r\n  [99]=>\r\n  string(8) \"idea-cfb\"\r\n  [100]=>\r\n  string(8) \"idea-ecb\"\r\n  [101]=>\r\n  string(8) \"idea-ofb\"\r\n  [102]=>\r\n  string(10) \"rc2-40-cbc\"\r\n  [103]=>\r\n  string(10) \"rc2-64-cbc\"\r\n  [104]=>\r\n  string(7) \"rc2-cbc\"\r\n  [105]=>\r\n  string(7) \"rc2-cfb\"\r\n  [106]=>\r\n  string(7) \"rc2-ecb\"\r\n  [107]=>\r\n  string(7) \"rc2-ofb\"\r\n  [108]=>\r\n  string(3) \"rc4\"\r\n  [109]=>\r\n  string(6) \"rc4-40\"\r\n}"},"comment":{"url":"https://api.github.com/repos/defuse/php-encryption/issues/comments/230477739","html_url":"https://github.com/defuse/php-encryption/issues/277#issuecomment-230477739","issue_url":"https://api.github.com/repos/defuse/php-encryption/issues/277","id":230477739,"user":{"login":"paragonie-scott","id":11591518,"avatar_url":"https://avatars.githubusercontent.com/u/11591518?v=3","gravatar_id":"","url":"https://api.github.com/users/paragonie-scott","html_url":"https://github.com/paragonie-scott","followers_url":"https://api.github.com/users/paragonie-scott/followers","following_url":"https://api.github.com/users/paragonie-scott/following{/other_user}","gists_url":"https://api.github.com/users/paragonie-scott/gists{/gist_id}","starred_url":"https://api.github.com/users/paragonie-scott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paragonie-scott/subscriptions","organizations_url":"https://api.github.com/users/paragonie-scott/orgs","repos_url":"https://api.github.com/users/paragonie-scott/repos","events_url":"https://api.github.com/users/paragonie-scott/events{/privacy}","received_events_url":"https://api.github.com/users/paragonie-scott/received_events","type":"User","site_admin":false},"created_at":"2016-07-05T13:27:45Z","updated_at":"2016-07-05T13:27:45Z","body":"> I do not know why PHP 5.4 for Windows on the openssl extension does not have aes-256-ctr. I guess it is a Windows issue.\r\n\r\nI suspect what @sstok says is likely accurate: It's probably compiled with an outdate OpenSSL. Alternatively, it's FIPS mode OpenSSL which is severely crippled.\r\n\r\n> Can another cypher method be used? These are the methods in the Windows version.\r\n\r\nNot without forking the entire project and reintroducing CBC mode."}}
{"actor":{"display_login":"paragonie-scott"}}