EggyByte Server
  1. Crypto
EggyByte Server
  • Default module
    • 项目介绍
    • 用户协议
    • 隐私政策
    • SuperDungeon
      • 超能魔盗团 隐私政策
      • User
        • Get User Data
        • Free Lottery
        • Paid Lottery
        • Sell Artwork
        • Find Top Users
        • Get Initial Data
        • Get Access
        • Change Name
      • Rank
        • Update
        • Find Top Users
      • Local
      • Remote
    • EggyByte
      • Account
        • Login
        • Register
        • Login Or Register
        • Access
        • Buy
        • Get Public Access
        • Formal Register
      • Game
        • Save Data
        • Load Data
      • Test
        • Random String
        • Get Map Json
      • Crypto
        • Compute Hash
          POST
        • Encrypt
          POST
        • Encrypt Map
          POST
        • Decrypt
          POST
      • Ad
        • Show
        • Debug
        • Impression Callback
      • User
        • Lock Test
        • Get User Data
        • Open Chest
      • Admin
        • Create Api Roles Copy
        • Create Api Roles Copy Copy
        • Delete Api Roles
        • Create Api Roles
      • Database
        • Update Mongo Users
        • List Databases
        • List Collections
        • List Mongo Users
        • Get Collection Stats
        • Get Collection Info
        • Get Paginated Documents
        • Create Mongo Users
        • Create Mongo Databases
      • Mailing
        • Send Mail
        • Send Captcha
        • Check Captcha
      • ThirdParty
        • Connect Url
        • Callback
        • Payment Link
    • 1
    • Untitled Endpoint
      GET
    • Untitled Endpoint
      POST
    • Setup
      POST
    • Create Database
      POST
    • Get Card
      GET
    • Create Question
      POST
    • Create Collection
      POST
    • Get Dashboards
      GET
    • Get Dashboard
      GET
    • Get Dashboard Copy
      POST
    • Untitled Endpoint
      GET
    • Untitled Endpoint
      GET
  • tester/v1/tester.proto
    • TesterService
      • List recent test runs with optional filtering.
      • Run a multi-service test suite in one request.
      • Run focused tests for a single service.
      • Retrieve a previously executed test run by ID.
  • auth/v1/auth.proto
    • AuthService
      • GetJWKS returns the JSON Web Key Set for token validation Used by Higress and other services to validate JWT tokens
      • GetOIDCDiscovery returns the OIDC discovery document Required for Higress OIDC plugin configuration
      • Authorize initiates the OAuth2/OIDC authorization flow Standard OIDC authorization endpoint for Higress integration
      • Authorize initiates the OAuth2/OIDC authorization flow Standard OIDC authorization endpoint for Higress integration
      • IntrospectToken validates and returns information about a token RFC 7662 - OAuth 2.0 Token Introspection (internal use only)
      • RevokeToken revokes an access or refresh token RFC 7009 - OAuth 2.0 Token Revocation
      • Token exchanges authorization code or refresh token for access tokens Standard OIDC token endpoint for Higress integration
      • GetUserInfo returns user information from a valid access token Standard OIDC UserInfo endpoint for Higress integration
      • GetUserInfo returns user information from a valid access token Standard OIDC UserInfo endpoint for Higress integration
      • ListUsers lists all users with auth information (admin only)
      • UpdateUserRole updates user's role (admin only)
      • SendEmailVerification sends email verification code
      • VerifyEmail verifies email with verification code
      • ResolveUserIdentity resolves JWT token and returns user identity context Called by Higress OIDC plugin to get user information for header injection
      • Login authenticates user credentials and returns tokens
      • Logout invalidates user tokens and sessions
      • ChangePassword changes user password (requires authentication)
      • ConfirmPasswordReset confirms password reset with code
      • ResetPassword initiates password reset flow
      • RefreshToken refreshes an access token using a refresh token
      • Register creates a new user account with authentication credentials
      • GetUserSessions retrieves active sessions for a user
      • RevokeUserSession revokes a specific user session
  1. Crypto

Compute Hash

POST
/crypto/computehash

Request

Authorization
Add parameter in header
X-Access-Token
Example:
X-Access-Token: ********************
Header Params

Body Params application/json

Example
{
    "data": "i love u",
    "key_id": "AES#token-normal"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/crypto/computehash' \
--header 'X-Master-Key: {{master_key}}' \
--header 'X-Access-Token: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "data": "i love u",
    "key_id": "AES#token-normal"
}'

Responses

🟢200成功
text/plain
加密后的Base64 string
Body

Example
rDvcf3a/ilZIjIqMLtTsvmKE33zoNr6ZOzMoExEDAAm46C8wMHjAxtDqTKVU0bpKJuyXpq52IV9x4L3xzU5m8w==
Modified at 2025-03-09 07:22:04
Previous
Get Map Json
Next
Encrypt
Built with