{"id":15368080,"url":"https://github.com/anonrig/all-crypt","last_synced_at":"2025-09-16T20:14:08.247Z","repository":{"id":9926967,"uuid":"11939639","full_name":"anonrig/All-Crypt","owner":"anonrig","description":"All Crypt Ruby Gem","archived":false,"fork":false,"pushed_at":"2013-08-07T02:50:33.000Z","size":140,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-13T09:28:41.432Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anonrig.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-07T02:33:49.000Z","updated_at":"2022-04-09T19:32:20.000Z","dependencies_parsed_at":"2022-09-21T17:15:14.525Z","dependency_job_id":null,"html_url":"https://github.com/anonrig/All-Crypt","commit_stats":null,"previous_names":["ynizipli/all-crypt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anonrig/All-Crypt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anonrig%2FAll-Crypt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anonrig%2FAll-Crypt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anonrig%2FAll-Crypt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anonrig%2FAll-Crypt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anonrig","download_url":"https://codeload.github.com/anonrig/All-Crypt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anonrig%2FAll-Crypt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275480788,"owners_count":25472945,"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-09-16T02:00:10.229Z","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":[],"created_at":"2024-10-01T13:28:13.061Z","updated_at":"2025-09-16T20:14:08.189Z","avatar_url":"https://github.com/anonrig.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"All_crypt Ruby Cryptology Gem\n=========\n\nA ruby gem to make web developers job more easy.\n\n\u003cblockquote\u003e\n    \u003cp\u003e\u003cb\u003egem install all_crypt\u003c/b\u003e\u003c/p\u003e\n\u003c/blockquote\u003e\n\nHow to use?\n=========\n\nThis gem uses several encryption and random number generation libraries and adds them to the Ruby's string library with a user friendly function names.\n\nFunctions\n=========\n\nFor all functions: Optional input digits, determines the number of digits of generated salt\n\nto_sha512 =\u003e Generates a random salt and uses it in SHA2-512 hashing algorithm. Returns a hash table with a salt and a hash.\n\nto_sha256 =\u003e Generates a random salt and uses it in SHA2-256 hashing algorithm. Returns a hash table with a salt and a hash.\n\nto_sha1 =\u003e Generates a random salt and uses it in SHA1 hashing algorithm. Returns a hash table with a salt and a hash.\n\nto_md5 =\u003e Generates a random salt and uses it in MD5 hashing algorithm. Returns a hash table with a salt and a hash.\n\nencrypt_aes256 =\u003e Generates a key and an initialization vector and encrypts the string. Returns a hash table with a key, iv and encrypted text.\n\ndecrypt_aes256 =\u003e Takes key and IV as an input and decrypts the plain text as an hash.\n\nto_base64 =\u003e Encodes the plain text\n\nfrom_base64 =\u003e Decodes the plain text\n\nto_random =\u003e Generates a random number.\n\nExample Use\n=========\n\n\"Plain text\".to_sha512(6)\n=\u003e {\"salt\"=\u003e\"3ylpNHu4\", \"encrypted\"=\u003e\"2181af1e422e6d82b00a..2\"}\n\n\"Plain text\".encrypt_aes256 \n=\u003e {\"key\"=\u003e\"h\\xCA\\x0..8^\", \"iv\"=\u003e\"\\x02\\xE0j..\\xC7\", \"encrypted\"=\u003e\"\\x1C\\x91\\r\\..xE7\"} \n\n\"Plain text\".to_base64\n=\u003e \"UGxhaW4gdGV4dA==\\n\" \n\n\"10\".to_random\n=\u003e \"2cgUtlTMV9YQuw==\" \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanonrig%2Fall-crypt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanonrig%2Fall-crypt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanonrig%2Fall-crypt/lists"}