{"id":19198434,"url":"https://github.com/virgilsecurity/virgil-crypto-ruby","last_synced_at":"2025-10-06T07:43:31.912Z","repository":{"id":56897499,"uuid":"72103381","full_name":"VirgilSecurity/virgil-crypto-ruby","owner":"VirgilSecurity","description":"Virgil Ruby Crypto Library is a high-level cryptographic library that allows you to perform all necessary operations for secure storing and transferring data and everything required to become HIPAA and GDPR compliant.","archived":false,"fork":false,"pushed_at":"2020-07-04T00:06:54.000Z","size":181,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-09-29T06:48:06.348Z","etag":null,"topics":["crypto","cryptography","e2ee","encryption","end-to-end-encryption","gdpr","hipaa"],"latest_commit_sha":null,"homepage":"https://developer.virgilsecurity.com/docs/how-to#cryptography","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VirgilSecurity.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-27T11:53:26.000Z","updated_at":"2023-11-22T14:35:03.000Z","dependencies_parsed_at":"2022-08-20T17:40:40.529Z","dependency_job_id":null,"html_url":"https://github.com/VirgilSecurity/virgil-crypto-ruby","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/VirgilSecurity/virgil-crypto-ruby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VirgilSecurity%2Fvirgil-crypto-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VirgilSecurity%2Fvirgil-crypto-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VirgilSecurity%2Fvirgil-crypto-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VirgilSecurity%2Fvirgil-crypto-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VirgilSecurity","download_url":"https://codeload.github.com/VirgilSecurity/virgil-crypto-ruby/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VirgilSecurity%2Fvirgil-crypto-ruby/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278577913,"owners_count":26009701,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["crypto","cryptography","e2ee","encryption","end-to-end-encryption","gdpr","hipaa"],"created_at":"2024-11-09T12:21:58.574Z","updated_at":"2025-10-06T07:43:31.884Z","avatar_url":"https://github.com/VirgilSecurity.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Virgil Security Ruby Crypto Library\n[![Build Status](https://travis-ci.org/VirgilSecurity/virgil-crypto-ruby.svg?branch=master)](https://travis-ci.org/VirgilSecurity/virgil-crypto-ruby)\n[![Gem](https://img.shields.io/gem/v/virgil-crypto.svg)](https://rubygems.org/gems/virgil-crypto)\n[![GitHub license](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg)](https://github.com/VirgilSecurity/virgil/blob/master/LICENSE)\n[![Documentation YARD](https://img.shields.io/badge/docs-yard-blue.svg)](https://virgilsecurity.github.io/virgil-crypto-ruby)\n\n### [Introduction](#introduction) | [Library purposes](#library-purposes) | [Usage examples](#usage-examples) | [Installation](#installation) | [Docs](#docs) | [License](#license) | [Contacts](#support)\n\n## Introduction\nVirgilCrypto is a stack of security libraries (ECIES with Crypto Agility wrapped in Virgil Cryptogram) and an open-source high-level [cryptographic library](https://github.com/VirgilSecurity/virgil-crypto) that allows you to perform all necessary operations for securely storing and transferring data in your digital solutions. Crypto Library is written in C++ and is suitable for mobile and server platforms.\n\nVirgil Security, Inc., guides software developers into the forthcoming security world in which everything will be encrypted (and passwords will be eliminated). In this world, the days of developers having to raise millions of dollars to build a secure chat, secure email, secure file-sharing, or a secure anything have come to an end. Now developers can instead focus on building features that give them a competitive market advantage while end-users can enjoy the privacy and security they increasingly demand.\n\n## Library purposes\n* Asymmetric Key Generation\n* Encryption/Decryption of data and streams\n* Generation/Verification of digital signatures\n* PFS (Perfect Forward Secrecy)\n\n## Usage examples\n\n#### Generate a key pair\n\nGenerate a Private Key with the default algorithm (EC_X25519):\n```ruby\nrequire 'virgil/crypto'\ninclude Virgil::Crypto\n\ncrypto = VirgilCrypto.new\nkey_pair = crypto.generate_keys\n```\n\n#### Generate and verify a signature\n\nGenerate signature and sign data with a private key:\n```ruby\nrequire 'virgil/crypto'\ninclude Virgil::Crypto\n\ncrypto = VirgilCrypto.new\n\n# prepare a message\nmessage_to_sign = 'Hello, Bob!'\ndata_to_sign = Bytes.from_string(message_to_sign)\n\n# generate a signature\nsignature = crypto.generate_signature(data_to_sign, sender_private_key)\n```\n\nVerify a signature with a public key:\n```ruby\nrequire 'virgil/crypto'\ninclude Virgil::Crypto\n\ncrypto = VirgilCrypto.new\n\n# verify a signature\nverified = crypto.verify_signature(signature, data_to_sign, sender_public_key)\n```\n\n#### Encrypt and decrypt data\n\nEncrypt Data on a Public Key:\n\n```ruby\nrequire 'virgil/crypto'\ninclude Virgil::Crypto\n\ncrypto = VirgilCrypto.new\n\n# prepare a message\nmessage_to_encrypt = 'Hello, Bob!'\ndata_to_encrypt = Bytes.from_string(message_to_encrypt)\n\n# encrypt the message\nencrypted_data = crypto.encrypt(data_to_encrypt, receiver_public_key)\n```\n\nDecrypt the encrypted data with a Private Key:\n```ruby\nrequire 'virgil/crypto'\ninclude Virgil::Crypto\n\ncrypto = VirgilCrypto.new\n\n# prepare data to be decrypted\ndecrypted_data = crypto.decrypt(encrypted_data, receiver_private_key)\n\n# decrypt the encrypted data using a private key\ndecrypted_message = Bytes.new(decrypted_data).to_s\n```\n\nNeed more examples? Visit our [developer documentation](https://developer.virgilsecurity.com/docs/how-to#cryptography).\n\n## Installation\n\nTThe Virgil Crypto is provided as a [gem](https://rubygems.org/) named [*virgil-crypto*](https://rubygems.org/gems/virgil-crypto) and available for Ruby 2.1 and newer. The package is distributed via *bundler* package manager.\n\n To install the package use the command below:\n\n ```\n gem install virgil-crypto\n ```\n\n or add the following line to your Gemfile:\n\n ```\n gem 'virgil-crypto', '~\u003e 3.6.5'\n ```\nand then run\n\n```\nbundle\n```\n## Docs\n- [Crypto Core Library](https://github.com/VirgilSecurity/virgil-crypto)\n- [More usage examples](https://developer.virgilsecurity.com/docs/how-to#cryptography)\n\n## License\n\nThis library is released under the [3-clause BSD License](https://github.com/VirgilSecurity/virgil-sdk-javascript/blob/master/LICENSE).\n\n## Support\nOur developer support team is here to help you. Find out more information on our [Help Center](https://help.virgilsecurity.com/).\n\nYou can find us on [Twitter](https://twitter.com/VirgilSecurity) or send us email support@VirgilSecurity.com.\n\nAlso, get extra help from our support team on [Slack](https://virgilsecurity.com/join-community).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirgilsecurity%2Fvirgil-crypto-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvirgilsecurity%2Fvirgil-crypto-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirgilsecurity%2Fvirgil-crypto-ruby/lists"}