{"id":22419681,"url":"https://github.com/sentclose/sentc-javascript","last_synced_at":"2025-08-24T16:32:33.885Z","repository":{"id":58580146,"uuid":"528300039","full_name":"sentclose/sentc-javascript","owner":"sentclose","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-30T12:26:12.000Z","size":367,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-20T12:13:18.689Z","etag":null,"topics":["backend-as-a-service","end-to-end-encryption","javascript","sentc","sentclose","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sentclose.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-24T06:47:27.000Z","updated_at":"2024-09-30T12:26:15.000Z","dependencies_parsed_at":"2024-10-26T14:17:30.785Z","dependency_job_id":"e0c356cc-c6cf-4cf7-b6cd-889ae9212d1c","html_url":"https://github.com/sentclose/sentc-javascript","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sentclose%2Fsentc-javascript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sentclose%2Fsentc-javascript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sentclose%2Fsentc-javascript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sentclose%2Fsentc-javascript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sentclose","download_url":"https://codeload.github.com/sentclose/sentc-javascript/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228330056,"owners_count":17903019,"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":["backend-as-a-service","end-to-end-encryption","javascript","sentc","sentclose","typescript"],"created_at":"2024-12-05T16:16:29.743Z","updated_at":"2024-12-05T16:16:30.420Z","avatar_url":"https://github.com/sentclose.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sentc Javascript SDK\n\nfrom sentclose.\n\nEnd-to-end encryption as a service.\n\nSentc is an easy to use end-to-end encryption sdk. It can be used for any kind of data.\n\n## Example from CDN\n\nThe scripts can be downloaded from any CDN provider. \n\n````html\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n\u003chead\u003e\n    \u003ctitle\u003eSentc example\u003c/title\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    \u003cscript src=\"https://cdn.jsdelivr.net/npm/@sentclose/sentc/dist/sentc.min.js\"\u003e\u003c/script\u003e\n\n    \u003cscript\u003e\n        //init the wasm\n        const sentc = window.Sentc.default;\n\n        async function run() {\n            //use your public token as the app token.\n            // if a user is already logged in, this function will return the logged-in user\n            await sentc.init({\n                app_token: \"5zMb6zs3dEM62n+FxjBilFPp+j9e7YUFA+7pi6Hi\"\n            });\n\t\t\t\n            //now you are ready to go\n            //register a user:\n            await sentc.register(\"username\", \"password\");\n\t\t\t\n            //log in a user\n            const user = await sentc.login(\"username\", \"password\");\n\t\t\t\n            //create a group\n            const group_id = await user.createGroup();\n\t\t\t\n            //load a group. returned a group obj for every user.\n            const group = await user.getGroup(group_id);\n\t\t\t\n            //invite a user to a group. use the sentc user id\n            await group.invite(\"user_id_of_the_other_user\");\n\t\t\t\n            //encrypt a string for the group\n            const encrypted_string = await group.encryptString(\"hello there!\");\n\t\t\t\n            //now every user in the group can decrypt the string\n            const decrypted_string = await group.decryptString(encrypted_string);\n\t\t\t\n            console.log(decrypted_string);  //hello there!\n        }\n\t\t\n        run();\n    \u003c/script\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n````","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsentclose%2Fsentc-javascript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsentclose%2Fsentc-javascript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsentclose%2Fsentc-javascript/lists"}