{"id":16244859,"url":"https://github.com/dubek/salsa20-ruby","last_synced_at":"2025-03-19T18:33:23.066Z","repository":{"id":56894203,"uuid":"2235555","full_name":"dubek/salsa20-ruby","owner":"dubek","description":"Ruby bindings for the Salsa20 stream cipher algorithm","archived":false,"fork":false,"pushed_at":"2021-10-12T08:37:53.000Z","size":32,"stargazers_count":4,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T20:26:11.813Z","etag":null,"topics":["cipher","encryption","ruby","salsa20"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dubek.png","metadata":{"files":{"readme":"README.rdoc","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-08-19T18:25:48.000Z","updated_at":"2021-11-28T00:06:55.000Z","dependencies_parsed_at":"2022-08-20T16:00:06.602Z","dependency_job_id":null,"html_url":"https://github.com/dubek/salsa20-ruby","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubek%2Fsalsa20-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubek%2Fsalsa20-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubek%2Fsalsa20-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubek%2Fsalsa20-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dubek","download_url":"https://codeload.github.com/dubek/salsa20-ruby/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244013981,"owners_count":20383713,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cipher","encryption","ruby","salsa20"],"created_at":"2024-10-10T14:21:04.905Z","updated_at":"2025-03-19T18:33:22.745Z","avatar_url":"https://github.com/dubek.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"= salsa20\n\nRuby-wrapper for the {Salsa20 stream cipher\nalgorithm}[http://cr.yp.to/snuffle.html] designed by Daniel Bernstein. Salsa20\nis a family of 256-bit stream ciphers designed in 2005 and submitted to\neSTREAM, the ECRYPT Stream Cipher Project.\n\n== How to install\n\n  gem install salsa20\n\nYou'll need a working compiler -- the crypto code is the {original C\nimplementation}[http://cr.yp.to/snuffle.html] from Daniel Bernstein.\n\n== Usage\n\n  require 'salsa20'\n  \n  key = \"VERY_SECRET_256_BIT_KEY_12345678\"\n  iv = \"-RANDOM-\"\n  plain_text = \"Salsa20 is a family of 256-bit stream ciphers\"\n  \n  encryptor = Salsa20.new(key, iv)\n  encrypted_text = encryptor.encrypt(plain_text)\n  p encrypted_text\n  # =\u003e \"\\x9D\\x1C\\xE4\\x83\\xAB\\x8E\\xB7\\x85a,\\xC3\\xF6\\x981*\\x03\\b-\\x99\\xAD\\xDF\\xBFS\\x96\\x94$\\xA0\\xF0U\\v\\xABz;=R\\xBB\\xE1\\xB0\\xDD\\xBC\\x1A9\\xB8\\xBEb\"\n  \n  decryptor = Salsa20.new(key, iv)\n  decrypted_text = decryptor.decrypt(encrypted_text)\n  p decrypted_text\n  # =\u003e \"Salsa20 is a family of 256-bit stream ciphers\"\n\nThe Salsa20 cipher algorhitm supports efficiently seeking to any 64-bytes\nboundry position in the stream using the +seek+ method. Use +position+ to tell\nthe current stream position in bytes.\n\nFor more information, see the detailed rdoc of the Salsa20 class.\n\n== References\n\n* http://cr.yp.to/snuffle.html\n* http://www.ecrypt.eu.org/stream/salsa20pf.html\n* http://en.wikipedia.org/wiki/Salsa20\n\n== License\n\nMIT open source license (full license text in the +LICENSE+ file).\n\n== Contact\n\nAuthor           :: Dov Murik (dov.murik@gmail.com)\nProject homepage :: https://github.com/dubek/salsa20-ruby\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdubek%2Fsalsa20-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdubek%2Fsalsa20-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdubek%2Fsalsa20-ruby/lists"}